SupabaseS
Supabase2mo ago
2 replies
Siva

Help: Self-hosting Supabase on an offline server — edge functions container keeps restarting

I’m self-hosting Supabase on a fully secured/offline server (no internet access). Everything deploys correctly except supabase-edge-functions, which keeps restarting because it tries to fetch external dependencies during boot.

Since the server has no outbound internet, the container repeatedly fails with errors like:

Error: failed to load 'https://deno.land/std@0.131.0/http/server.ts':
Import 'https://deno.land/std@0.131.0/http/server.ts' failed:
error sending request for url: error trying to connect:
tcp connect error: Connection timed out (os error 110)

Error: main worker boot error: worker boot error failed to load
'https://deno.land/std@0.131.0/http/server.ts':
tcp connect error: Connection timed out (os error 110)


Is there a way to run edge functions with all dependencies bundled/inlined (so it doesn’t try to reach Deno’s CDN)? Is there a recommended way to host the Deno dependencies locally?

Any advice or examples from anyone who has achieved fully offline/air-gapped deployment would be greatly appreciated!

Thanks!
Screenshot_2025-11-18_145312.png
Was this page helpful?