DEV Community

Naresh Vasikarla
Naresh Vasikarla

Posted on

Vite + Github Actions + One Build many deploy

Hi - Am working on a vite project where I need to deploy the static build to multiple environments. am using github actions. looking at the vite build, all env variables are injected during build time and had to build a package for each environment and then deploy which is not making sense. does anyone have any inputs on how to create one build and leverage for multiple environments. deploying to cloudfoundry - fyi. i did try unpacking and rebuilding and redeploying to cf but the configuration picks the file from artifactory ignoring the custom file. any pointers are appreciated.

Top comments (0)