Repository navigation
fix(deploy): gate public builds on browser candidates - #9831
Merged
Git-on-my-level merged 3 commits intoJul 15, 2026
Merged
Git-on-my-level merged 3 commits into
Git-on-my-level merged 3 commits into
Conversation
added 3 commits
July 16, 2026 01:28
Move browser-public build configuration into a reviewed, versioned source and enforce its contract locally and in CI. Deploy each public target as a no-traffic candidate, prove the built client initializes in a browser, then promote only that revision. Verification: public-build fixtures and static contract check; deployment secret-boundary and concurrency checks; actionlint; targeted client lint/type checks (the web/app legacy next lint runner is incompatible with its installed Next version).
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
Fixes #9824.
This is stacked on #9828. Its base is
mainbecause the parent branch is in the contributor fork; merge #9828 first, then GitHub will reduce this PR to the candidate-verification commit.Root cause and durable guard
The issue class was not a single missing environment variable: browser-delivered values were independently named, stored, injected, and verified across Dockerfiles and deployment workflows. That made a green build insufficient evidence that the served client initialized with the intended configuration.
The durable boundary is now explicit: one reviewed configuration document defines every declared browser input, the static contract binds it to the Dockerfiles/workflows/client canaries, and deployment promotion is gated by a smoke of the exact no-traffic candidate. A deploy cannot silently substitute a console value, skip a newly added input, or promote an artifact whose real browser client failed to initialize.
Verification
make preflightactionlintfor all five public-build workflowsweb/appnext lintcommand is incompatible with its installed Next version, while its TypeScript check passesdevelopmentandprod(values not logged)