Download next.js/errors/env-key-not-allowed.mdx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 487 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/env-key-not-allowed.mdx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/errors/env-key-not-allowed.mdx
-
curl -L -o env-key-not-allowed.mdx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/errors/env-key-not-allowed.mdx
487 Bytes
| title: 'The key `<your 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 another name for `NEXT_RUNTIME`. | |