-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[next] use middleware manifest worker environments #11390
[next] use middleware manifest worker environments #11390
Conversation
🦋 Changeset detectedLatest commit: 5a8dccf The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
…s-with-environment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add tests
This depends on a new Next.js canary release and if we ship the Next.js change first then canary builds are failing because they don't know how to handle the new manifest version? Can do a follow-up PR |
…s-with-environment
…s-with-environment
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. - Add support for edge function environment variables ([#11390](#11390)) - fix flickering during interactive UI rerendering ([#11392](#11392)) - fix `vc ls` message to be `vc projects ls` ([#11400](#11400)) - Updated dependencies \[[`2461b571a`](2461b57)]: - @vercel/next@4.2.0
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. - Add support for edge function environment variables ([#11390](#11390)) - fix flickering during interactive UI rerendering ([#11392](#11392)) - fix `vc ls` message to be `vc projects ls` ([#11400](#11400)) - Updated dependencies \[[`2461b571a`](2461b57)]: - @vercel/next@4.2.0
### What Bump the edge runtime manifest version and add `environments` property to each route for inlining values for deployment build. ### Why In edge runtime, extract the preview props into edge functions manifest that holding the non-deterministic inline values, then the output build will be more deterministic that helps deployment speed x-ref: vercel/vercel#11390 x-ref: vercel/vercel#11395 Closes NEXT-3012 Closes NEXT-1912
Rename `environment` property to `env` from middleware manifest added in #11390. Align with vercel/next.js#64521 The `environments` property wasn't working properly before due to unfinished next.js changes, it should work now after testing with next build from vercel/next.js#64521. We change it to a better naming word `env`.
This PR adds changes to the Next.js builder to pass the per-worker environment emitted from the Next.js middleware manifest to the created
EdgeFunction
resource.