nksaraf / vinxi

The Full Stack JavaScript SDK
https://vinxi.vercel.app
MIT License
1.33k stars 56 forks source link

use dotenv with vinxi start #277

Open birkskyum opened 2 months ago

birkskyum commented 2 months ago

When developing with vinxi dev the .env file will be loaded correctly with vite.

After building and starting, none of the import.meta.env are found.

My current alternative to vinxi start is pnpx node-env-run .output/server/index.mjs

related:

birkskyum commented 2 months ago

and ofc node --env-file