Works on PROD
This commit is contained in:
7
frontend/entrypoint.sh
Normal file
7
frontend/entrypoint.sh
Normal 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;'
|
||||
Reference in New Issue
Block a user