Replies: 1 comment
-
In case anyone comes across this issue. The problem was doing the optional chaining. This doesn't work:
this does:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I'm using Next 15.1.3 with React 19.0.0 and turbopack. I have a .env.local file that contains some NEXT_PUBLIC_ variables which load fine on the server but do not load at all (undefined) on the client.
I am using App router.
It works fine without using turbopack so I'm confused if I missed something?
If I console.log(process.env) it's just an empty {}
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions