rsnext/errors/env-key-not-allowed.md
Jiachi Liu d5e767b20d
Add process env NEXT_RUNTIME (#36383)
* To help determine the current running environment is in server nodejs / edge runtime
* Remove usage of `process.browser`
2022-04-26 17:54:28 +00:00

480 B

The key "" under "env" in next.config.js is not allowed.

Why This Error Occurred

Next.js configures internal variables for replacement itself. NEXT_RUNTIME along with variables starting with __ or NODE_ are currently internal, for this reason they are not allowed as values for env in next.config.js

Possible Ways to Fix It

Rename the specified key so that it does not start with __ or NODE_, or pick other another name for NEXT_RUNTIME.