Skip to content

support for compile-time vs runtime variables #1217

Closed
@gwvt

Description

@gwvt

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions