Repository navigation
Conversation
Contributor
CLI benchmark (Lightweight Commands): no changes foundCommit
API calls: unchanged for all 7 commands. Binary size: 134.6 MB, up 4.0 KB from 134.6 MB. Details: timing ranges, API calls per command, slowest phasesTiming ranges
API calls per command
Slowest phasesNo command moved beyond noise, so there are no phase deltas. Comment |
jgoux
approved these changes
Nov 5, 2026
jgoux
left a comment
Contributor
There was a problem hiding this comment.
Env precedence, the $default env merge, the host port and debug wiring all match the legacy path. Two small follow-ups inline.
7ttp
deleted the
7ttp/cli-2577-stack-match-legacy-functions-environment-for-start-and
branch
November 5, 2026 08:28
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 free
to 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
fixes the stack's Functions env so
supabase startandsupabase functions servegive functions the same env as the legacy backendwhats missing?
stack
functions serveignored each function's ownsupabase/functions/<slug>/.envthe stack let
[edge_runtime.secrets]win oversupabase/functions/.env, while legacy lets the file winon a running stack
--env-filekept thefunctions/.envvalues, and.envedits only applied after a restartmultiline values like PEM keys were rejected
--debugprinted less than legacy and the serve banner showed the internal porta stack where only Realtime serves the API failed with
Shared API port differs from existing claimfixed now by:
legacy and the stack now share one env resolver, and legacy
startandfunctions serveoutput stays exactly the samestack
functions servereads each function's.env, re-reads env files on every run and restores the saved config on exitmultiline values travel in the Functions config on native and docker
Realtime counts as an API source, and the runtime now gets the API port and debug mode
ref:
[edge_runtime.secrets]to functions like legacy (CLI-2577) #7481