rsnext/packages
JJ Kasper dcff078936
Re-land build(edge): extract buildId into environment (#65426)
### 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 vercel/next.js#65425

Co-authored-by: Jiachi Liu <inbox@huozhi.im>
2024-05-08 10:40:15 +02:00
..
create-next-app v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
eslint-config-next v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
eslint-plugin-next v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
font v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
next-bundle-analyzer v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-codemod v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-env v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-mdx v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-plugin-storybook v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-polyfill-module v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-polyfill-nomodule v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
next-swc Re-land build(edge): extract buildId into environment (#65426) 2024-05-08 10:40:15 +02:00
react-refresh-utils v14.3.0-canary.48 2024-05-08 06:38:45 +00:00
third-parties v14.3.0-canary.48 2024-05-08 06:38:45 +00:00