Normally, the build process is rather straightforward for me and I dont need anything other the defaults for my config. However, the I now need to change my baseUrl based on the mode I am building for and to be honest, I am a bit lost. I have seen the docs where it describes the default environment variables for dev and prod, but I actually need to declare one for "staging". What is the best way to go about handling this?
For example, my three modes are:
- Dev => localhost (nothing changed)
- Staging => a server that we normally just ftp into and put static assets at like placeholder-site.com/staging/current-site-name
- Production => a different server than "staging" that we ftp into the root and upload the site files at like current-site-name.com
I have looked around and have found wildly different solutions, but I was wondering what the "correct" way of handling this would be based on vite/astro.