Repository navigation
chore(config): retire the remaining NEXT_PUBLIC_* flag twins - #10342
Merged
Merged
Conversation
The browser now reads BILLING_ENABLED, E2B_ENABLED, SLACK_EXTENDED_SCOPES, DISABLE_INVITATIONS and DISABLE_PUBLIC_API through the deployment-shape projection, like the enterprise flags, instead of NEXT_PUBLIC_* twins that had to be kept in sync by hand. - env-flags: browser branches read the projected value (absent reads as off); add isE2bEnabled - deployment shape: project e2bEnabled, slackExtendedScopes, invitationsDisabled and publicApiDisabled (optional for rolling compatibility) - Pi block and usePermissionConfig read the deployment shape - env schema, Helm values, docs and e2e scripts drop the twins - sim-setup: remove the twin pairing and the E2B mismatch check; doctor now warns that a leftover twin does nothing and names its server variable
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
[Medium impact] The PR appears safe to merge; no actionable new issue was found. SummaryMoves five browser flags from paired environment variables to the server’s deployment shape.
Intentional behavior noted by waleedlatif1: Pi cloud modes now follow
|
This branch was successfully deployed
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.
Summary
The browser now reads
BILLING_ENABLED,E2B_ENABLED,SLACK_EXTENDED_SCOPES,DISABLE_INVITATIONSandDISABLE_PUBLIC_APIfrom the deployment-shape projection on<html>, the same path the enterprise flags andREGISTRATION_MODEalready take. The fiveNEXT_PUBLIC_*twins that had to be kept in sync by hand are gone.env-flags: the browser branches read the projected value, and a document without a projection reads it as off. AddsisE2bEnabled.e2bEnabled,slackExtendedScopes,invitationsDisabledandpublicApiDisabled. They're optional so app versions that predate them keep parsing during a rolling deploy.usePermissionConfigread the deployment shape instead ofgetEnv('NEXT_PUBLIC_*').doctornow warns that a leftover twin does nothing and names the server variable that replaces it.Behavior is unchanged for any deployment where each twin already matched its server variable, which sim-setup doctor required. Pi's cloud modes now follow
E2B_ENABLEDdirectly.Testing
deployment-projection.dom.test.tscovers the projected switches. It fails when the browser ignores the projection.check:client-boundary,check:comment-hygieneandcheck:docsaudits.