Works on PROD

This commit is contained in:
aodulov
2025-10-15 16:07:56 +03:00
parent 03d31011fd
commit 8cbb520408
7 changed files with 38 additions and 9 deletions

7
frontend/entrypoint.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/sh
# Create a config.js file with the runtime environment variable
echo "window.runtimeConfig = { API_URL: '${API_URL}' };" > /usr/share/nginx/html/config.js
# Start the Nginx server
exec nginx -g 'daemon off;'