This repository was archived by the owner on Oct 9, 2025. It is now read-only.
  
  
  - 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 52
 
Incorrect storage download link host in localΒ #171
Copy link
Copy link
Open
Description
Describe the bug
Local edge functions run on docker inside a container called supabase_deno_relay which auto-sets the SUPABASE_URL. However, it uses the internal URL of the container network. This causes issues with the JS clients that run inside edge functions with storage since it creates the download and signed URLs using the internal http://supabase_kong_hyperion-app:8000 instead of the usual exposed localhost:54321api endpoint.
To Reproduce
Steps to reproduce the behavior:
- Run edge functions with 
servecli command - Generate a download link using the JS client inside an edge function
 - Try to access the download link (will be in this format: 
http://supabase_kong_app:8000/storage/v1/object/public/public/users/ce5b2b2f-cfdc-4f56-a886-488dba35a184/file.txt) instead of usinglocalhost:54321 
Expected behavior
The download link generated is accessible locally using localhost:54321
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- Version of CLI 1.75.2
 - Version of supabase-js 2.26.0
 
magdalipka, ManuelAngel99, maxckelly, samuelkubinsky, stefan-girlich and 1 more
Metadata
Metadata
Assignees
Labels
No labels