Uh oh!
There was an error while loading. Please reload this page.
feat(cli): discover function env files (CLI-2184) - #6182
Merged
7ttp merged 1 commit intoAug 13, 2026
Merged
Conversation
Contributor
Supabase CLI previewnpx --yes https://pkg.pr.new/supabase/cli/supabase@5df8e0d579902d3658d992cb0349e0439a2fa5ffPreview package for commit |
jgoux
approved these changes
Aug 13, 2026
Uh oh!
There was an error while loading. Please reload this page.
7ttp
deleted the
7ttp/cli-2184-automatic-discovery-of-edge-functions-env-when-running
branch
August 13, 2026 20:13
avallete added a commit
that referenced
this pull request
Aug 13, 2026
… files) Resolves 3 conflicts with develop's function env-file discovery (CLI-2184, #6182). The Go serve template modification lands on a file this branch deleted (functions serve is fully native; the Go functions/serve package is gone) — deletion stands, and the TS-side implementation auto-merged. The porting-status tracker note moves to go-cli-divergences.md per this branch's docs restructure; SIDE_EFFECTS.md keeps develop's new per-function .env row and precedence note in this branch's de-Go-ified wording. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
Automatically discover
supabase/functions/<function-name>/.envfiles when runningsupabase functions serve.Without
--env-file,supabase/functions/.envcontinues to provide shared values, while each Function's.envoverrides matching values for that Function only.An explicit
--env-fileremains the highest-priority source and disables automatic discovery...This is scoped to
functions servesupabase startretains its existing behavior(will consider it as a followup, if needed)Ref:
s .env when runningsupabase functions serve` #6179super thanks! to @Bohooslav 💚