mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
When there is a DOM element with id of `process`, the DOM marks it as a global, so `window.process` would exist. We should check for `process.env` to make sure it is available too.
8 lines
145 B
JavaScript
8 lines
145 B
JavaScript
export default function Page() {
|
|
return (
|
|
<div id="process">
|
|
Hello, {process.env.NEXT_PUBLIC_VISITOR ?? 'stranger'}
|
|
</div>
|
|
)
|
|
}
|