Alexy
Alexy

Reputation: 1090

cross-env not updating meta.env variables with vite + vue3

I'm trying to specify env during start command like :

"dev": "cross-env VITE_NODE_ENV=development && vite --host 0.0.0.0 --port 8080",

But when console.log(import.meta.env) there is no VITE_NODE_ENV available. How to deal with this ?

Upvotes: 4

Views: 1822

Answers (0)

Related Questions