Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Incorrect storage download link host in localΒ #171

@bombillazo

Description

@bombillazo

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:

  1. Run edge functions with serve cli command
  2. Generate a download link using the JS client inside an edge function
  3. 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 using localhost: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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions