mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
## 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.
8 lines
166 B
JavaScript
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>
|
|
}
|
|
}
|