The Node.js NODE_OPTIONS environment variable allows setting multiple options in a space-separated list, and sometimes it is necessary to set multiple options.
For example
NODE_OPTIONS='--no-experimental-fetch --trace-warnings'
However the current validation regex does not allow for spaces or quotes
$ dotenv -v NODE_ENV=production -v NODE_OPTIONS='--no-experimental-fetch --trace-warnings' next start
Unexpected argument NODE_OPTIONS=--no-experimental-fetch --trace-warnings. Expected variable in format variable=value
The cross-env package allows for this
cross-env NODE_ENV=production NODE_OPTIONS='--no-experimental-fetch --trace-warnings'