T
TanStack5mo ago
foreign-sapphire

vinxi start doesn't load .env in node envorment

DB_FILE_NAME=file:sqlite.db pnpm start this works but pnpm start seem env not working on production build
2 Replies
deep-jade
deep-jade5mo ago
You are right, It is a limitation of Nitro (used by Vinxi) if I remember correctly. You can use export $(grep -v '^#' .env | xargs) && pnpm start
foreign-sapphire
foreign-sapphireOP5mo ago
thanks it works

Did you find this page helpful?