How to change the base url of your vite application even after you’ve run the build .

Why do we have to change the base url of the api after running the build for production or staging ?