The server-only environment variable can not be loaded if concurrentFeatures: true
#30891
Labels
bug
Issue was opened via the bug report template.
What version of Next.js are you using?
latest (12.0.2)
What version of Node.js are you using?
14.16.0
What browser are you using?
Edge
What operating system are you using?
macOS
How are you deploying your application?
next dev
Describe the Bug
I'm using next.js environment variables example as an example. When I upgrade react to 18 (alpha) and enable the
concurrentFeatures: true
, the environment variables becomeundefined
.However, public variable can be read.
Expected Behavior
The blog post and docs seems not describing this behavior, so I expected the env variables should be loaded correctly.
To Reproduce
Repo can be found here.
.env
concurrentFeatures: true
The text was updated successfully, but these errors were encountered: