9155201807
This commit enables the following patterns in Middleware: ```ts // with a dot notation const { ENV_VAR, "ENV-VAR": myEnvVar } = process.env; // or with an object access const { ENV_VAR2, "ENV-VAR2": myEnvVar2 } = process["env"]; ``` ### Related - @cramforce asked this fixed here: https://github.com/vercel/next.js/pull/37514#discussion_r892437257 ## Feature - [x] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` |
||
---|---|---|
.. | ||
analysis | ||
babel | ||
jest | ||
output | ||
polyfills | ||
swc | ||
webpack | ||
compiler.ts | ||
cssnano-simple.js | ||
entries.ts | ||
generate-build-id.ts | ||
index.ts | ||
is-writeable.ts | ||
load-jsconfig.ts | ||
spinner.ts | ||
utils.ts | ||
webpack-config.ts | ||
worker.ts | ||
write-build-id.ts |