Files
next.js/test/integration/non-standard-node-env-warning/pages/index.js
Tim NeutkensandGitHub 2d48158402 Turbopack build: Fix NODE_ENV test (#79377)
## What?

This test was checking for an arbitrary value, it wasn't clear to me why
this particular value given it's not in the source code.

I've changed it to an application-level check instead of checking the
Next.js internals.
2025-05-20 18:40:38 +02:00

8 lines
166 B
JavaScript

export default function Page() {
if (process.env.NODE_ENV === 'production') {
return <h1>Hello Production</h1>
} else {
return <h1>Hello Other</h1>
}
}