CviLux_fe/docker-entrypoint.sh
2025-06-11 18:12:07 +08:00

3 lines
209 B
Bash

#!/bin/sh
echo "window.env = { VITE_API_BASEURL: '${VITE_API_BASEURL}', VITE_FILE_API_BASEURL: '${VITE_FILE_API_BASEURL}', VITE_MQTT_BASEURL: '${VITE_MQTT_BASEURL}' };" > /usr/share/nginx/html/env.js
exec "$@"