build: update Dockerfile for dynamic env configuration
This commit is contained in:
parent
c68b3f2f7e
commit
657ce4ed40
5 changed files with 66 additions and 14 deletions
8
frontend/env.js
Normal file
8
frontend/env.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
// env.js - Script to replace environment variables at runtime
|
||||
(function(window) {
|
||||
window.__env = window.__env || {};
|
||||
|
||||
// Environment variables
|
||||
window.__env.STRIPE_KEY = '${STRIPE_KEY}';
|
||||
window.__env.API_URL = '${API_URL}';
|
||||
})(this);
|
Reference in a new issue