Reputation: 1090
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