Files
unisono/frontend/entrypoint.sh
2025-10-15 16:07:56 +03:00

8 lines
220 B
Bash

#!/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;'