Skip to content

Use env vars without it needing to be the entire string. #3438

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
icopp opened this issue Apr 15, 2025 · 0 comments
Open

Use env vars without it needing to be the entire string. #3438

icopp opened this issue Apr 15, 2025 · 0 comments

Comments

@icopp
Copy link

icopp commented Apr 15, 2025

Is your feature request related to a problem? Please describe.
When using branching, it's impossible to properly supply various values based on env vars but also other text.

For example:

[auth.external.google]
[auth]
enabled = true
site_url = "env(SUPABASE_AUTH_SITE_URL)"
additional_redirect_urls = ["env(SUPABASE_AUTH_SITE_URL)/auth/callback"] # This doesn't work!

Describe the solution you'd like
There should be some way to use env() placeholders inline in a string, either as-is or with extended syntax (for example, ${env()} like JS template strings).

Describe alternatives you've considered
Right now, the only alternative is to hardcode everything, which obviously doesn't work for branching.

Additional context
https://github.com/orgs/supabase/discussions/18937

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant