adapter-static documentation references process.env.NODE_ENV
which no longer works
#7417
Labels
documentation
Improvements or additions to documentation
Describe the bug
When using the example code in this section of the README,
process.env.NODE_ENV
is undefined when access insvelte.config.js
.It'd be great if this section of the README was updated with the correct code that would make Github Pages work in dev and production modes, for example. I tried to use vite's
import.meta.env
but that didn't have the required information either unfortunately.Reproduction
You can test this with a
console.log(process.env.NODE_ENV)
insvelte.config.js
. The bug is that it'sundefined
whereas before it wasdevelopment
when run withnpm run dev
.Logs
No response
System Info
Severity
blocked
Additional Information
No response
The text was updated successfully, but these errors were encountered: