Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

replace %env% in html file while nginx start #25

Open
@zzswang

Description

@zzswang

Create React APP could inject env into html at build-time. We try to make it injecting at run-time.

like envsubst, we need to replace %env% word in html file with correct env value.

input

<title>%REACT_APP_TITLE%</title>

output

<title>Some Real Title in Docker Env</title>

if env REACT_APP_TITLE not exist, leave <title>%REACT_APP_TITLE%</title> there, don't change.

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