Skip to content

Conversation

ijjk
Copy link
Member

@ijjk ijjk commented May 6, 2024

Needs to hold until upstream roll-out

Reverts #64521

Closes NEXT-3343

Copy link

linear bot commented May 6, 2024

@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 <[email protected]>
@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