Replies: 2 comments 3 replies
-
@gerkim62 Did you figure out anything here? I'm running into the same issue. Values from |
Beta Was this translation helpful? Give feedback.
3 replies
-
In production TSS/vinxi doesn't load environment variables, you have to maintain them yourself. node --env-file=".env" .output/server/index.mjs If you're running a docker container: CMD ["node", "--env-file=.env", ".output/server/index.mjs"] If you're hosting on a serverless platform, it will mostly handle that for you. This behavior is the same as Nuxt |
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
Uh oh!
There was an error while loading. Please reload this page.
-
in development mode the following code works, but in production it doesn't work as the variables are undefined
while it works in dev mode, this is the error thrown when i try to access the variables after building and running pnpm start
Beta Was this translation helpful? Give feedback.
All reactions