Development vs Build variables - using Vite
I have a SolidJS site working nicely. In the Vite development environment I have a variable called "server"...
but when I want to build it using "npm run build" this variable need to change...
Is there an easy way to set this up to happen automatically, so that I don't need to manually change this variable every time I want to build
2 Replies
Vite
Next Generation Frontend Tooling
Thanks. I figured it out. This video helped me
https://www.youtube.com/watch?v=jqCjflIGH1o
Igor Babko
YouTube
Builds with Vite #16 - Environment variables
Let's explore the power of modern frontend bundler Vite.
🧪 Repository: https://github.com/igorbabko/builds-with-vite
🧪 Source code for every lesson: https://github.com/igorbabko/builds-with-vite/commits/main
🎨 VS Code theme: https://marketplace.visualstudio.com/items?itemName=JoseMurilloc.aura-spirit-dracula
🎨 VS Code icons: https://marketplac...