7 lines
250 B
Bash
7 lines
250 B
Bash
#!/bin/sh
|
|
# Create config file with environment variables
|
|
echo "window.env = {" > /usr/share/nginx/html/env-config.js
|
|
echo " VITE_API_URL: \"${VITE_API_URL}\"" >> /usr/share/nginx/html/env-config.js
|
|
echo "};
|
|
" >> /usr/share/nginx/html/env-config.js
|