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

1.2k Views Asked by At

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 ?

0

There are 0 best solutions below