Upgrade edge-runtime + make EdgeRuntime value overridable with an env var on compilation (#38331)
This PR introduces an environment variable that allows to modify the `EdgeRuntime` value on compilation time. This is done to allow cloud providers like Vercel to have a different value, and enable user code and 3rd party libraries to have different code paths depending on the Edge Functions provider. ## Related - Related to #30739 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md`
Showing
| ... | ... | @@ -55,7 +55,7 @@ |
| "@babel/plugin-proposal-object-rest-spread": "7.14.7", | ||
| "@babel/preset-flow": "7.14.5", | ||
| "@babel/preset-react": "7.14.5", | ||
| "@edge-runtime/jest-environment": "1.1.0-beta.10", | ||
| "@edge-runtime/jest-environment": "1.1.0-beta.11", | ||
| "@fullhuman/postcss-purgecss": "1.3.0", | ||
| "@mdx-js/loader": "0.18.0", | ||
| "@next/bundle-analyzer": "workspace:*", | ||
| ... | ... |
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment