Enrypase
defineConfig import.meta.dev
I had already set-up my env correctly.
console.logging(env) shown an interesting variable called npm_lifecycle_event that is start when npm start and dev when npm run dev.
I tried it out and it seems to work.
Do you think it's fine using this variable here rather than defining a custom one?
31 replies
defineConfig import.meta.dev
Gm.
Thanks for your answer.
I actually didn't think about setting the ENV variable via CMD. And that's a great idea for archiving the desired result!
So, is this the only way for reaching my goal, in your opinion?
Thank you very much! :))
31 replies