Closed
Description
What problem does this feature solve?
When developing in a Heroku pipeline, environment variables are hardcoded in the build process for a staging app. When that app is promoted to production, the build is not recompiled, and there is no way to change the values passed to those variables. For example, the value of a variable like VUE_APP_API_URL will likely need to change from the staging API/database to the production API/database. Using vue-cli modes and setting different values in .env.staging and .env.production only works if the app is being recompiled for the production environment.
What does the proposed API look like?
See the solution implemented for create-react-app as outlined here: https://github.com/mars/create-react-app-buildpack#compile-time-vs-runtime.
Metadata
Metadata
Assignees
Labels
No labels