Scripts and Config for Runtime Env #2
No reviewers
Labels
No Label
Copied from Github
Kind/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: cerc-io/test-progressive-web-app#2
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "telackey/runtimeenv"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This uses a combination of scripts, and webpack.DefinePlugin to automatically replace any references to
process.env.FOO
at runtime.Normally, these get baked in during the build process, but under this scheme the reference gets replaced with a unique string at build time, and then replaced again with the environment value at runtime.
The runtime script operates on a copy of the code, so that the server can be restarted and the values updated each time.
Pull request closed