Skip to content

Revert "build(edge): extract buildId into environment"#65425

Merged
ijjk merged 1 commit into
canaryfrom
revert-64521-edge/extract-build-id
May 6, 2024
Merged

Revert "build(edge): extract buildId into environment"#65425
ijjk merged 1 commit into
canaryfrom
revert-64521-edge/extract-build-id

Conversation

@ijjk

@ijjk ijjk commented May 6, 2024

Copy link
Copy Markdown
Member

Needs to hold until upstream roll-out

Reverts #64521

Closes NEXT-3343

@linear

linear Bot commented May 6, 2024

Copy link
Copy Markdown

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. tests Turbopack Related to Turbopack with Next.js. type: next labels May 6, 2024
@ijjk ijjk merged commit 85a874a into canary May 6, 2024
@ijjk ijjk deleted the revert-64521-edge/extract-build-id branch May 6, 2024 23:54
ijjk added a commit that referenced this pull request May 6, 2024
huozhi added a commit that referenced this pull request May 8, 2024
### What

* Extract `buildId` and server action encryption key into environment
variables for edge to make code more deterministic
* Fixed the legacy bad env names from #64108
* Always sort `routes` in prerender manifest for consistent output
* Change `environments` to `env` in middleware manifest, confirmed with
@javivelasco this is a fine change without need to bumping the version

### Why

Dynamic variants like `buildId`, SA `encryptionKey` and preview props
are different per build, which results to the non determinstic edge
bundles. Once we extracted them into env vars then the bundles become
deterministic which give us more space for optimization


Closes NEXT-3117

Reverts #65425

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators May 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

created-by: Next.js team PRs by the Next.js team. locked tests Turbopack Related to Turbopack with Next.js. type: next

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants