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