build: update Dockerfile for dynamic env configuration

This commit is contained in:
Constantin Simonis 2025-05-21 13:31:28 +02:00
commit 657ce4ed40
No known key found for this signature in database
GPG key ID: 3878FF77C24AF4D2
5 changed files with 66 additions and 14 deletions

8
frontend/env.js Normal file
View 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);