Skip to content

Suggesting a different approach #1

Description

@axelhzf

I was reading the whole conversation here react/create-react-app#982
and I wanted to propose a different solution but the issue was closed. So I thought that this would be a good place to follow the conversation (sorry if that is not the case).

I tried a different approach here https://github.com/axelhzf/create-react-app-docker-environment-variables
the main idea is to build the application at build time and only replace the environment variables at runtime. The environment variables are replaced on the index.html defining a global variable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions