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

Open
#3,438 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
cli

Research direction

No file or test is named. Start by locating the CLI configuration parser and its current env() substitution handling, then reproduce the provided auth configuration with an inline value. Done means inline environment placeholders work in strings while existing full-string env() values continue to work.

Written by the indexing model from the issue text.

Description

✨ Feature supabase/cli

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

Dominant language
TypeScript
Stars
2.4k
Forks
523
Avg merge
21h 33m
Merged PRs (30d)
258

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/cli

All issues in supabase/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.