Our non-standard NODE_ENV error should know the target environment #14022
Labels
Developer Experience
Issues related to Next.js logs, Error overlay, etc.
good first issue
Easy to fix issues, good for newcomers
Our
NON_STANDARD_NODE_ENV
error should warn when it detectsdevelopment
duringnext start
ornext build
and when it detectsproduction
duringnext dev
.See #14019 where we did not warn for
development
in production, used to bypass intentional restrictions.The text was updated successfully, but these errors were encountered: