When running supabase locally as docker, It's impossible to to assign a value of environment variable to site_url in config.toml. #23296
Labels
bug
Something isn't working
cli
Related to supabase/cli
needs-analysis
Issue status is unknown and/or not possible to triage with the current info
Bug report
Describe the bug
When running supabase locally as docker, It's impossible to to assign a value of environment variable to site_url in config.toml.
To Reproduce
I used supabase-cli to create a supabase directory with the default config:
In the config I replaced the
site_url
with a custom hardcoded url:localhost:5173
because I wanted my google sign in work locally, andlocalhost:5173
is the address of my local frontend application.Unfortunately when I try to replace the hardcoded url with an environment variable (that I provide during the run of supabase)
the site_url is not getting replaced, instead it's understood as string, and used as such, what can be seen in one of the redirects I get in the browser:
http://localhost:54321/env(SUPABASE_CONFIG_SITE_URL)#access_token=....
Expected behavior
The
site_url
should be replaced with the value ofSUPABASE_CONFIG_SITE_URL
just like other parameters in the config are replaced with other variablesSystem information
The text was updated successfully, but these errors were encountered: