Improved responsiveness on mobile phone
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Write runtime env vars into a JS file loaded before the app bundle.
|
||||
# Any VITE_* variable passed via `docker run -e` will be available as
|
||||
# window.__env__.VITE_* inside the browser.
|
||||
cat > /usr/share/nginx/html/env-config.js <<EOF
|
||||
window.__env__ = {
|
||||
VITE_API_URL: "${VITE_API_URL:-}",
|
||||
VITE_APP_PASSWORD: "${VITE_APP_PASSWORD:-}",
|
||||
VITE_UPLOAD_ENABLED: "${VITE_UPLOAD_ENABLED:-}",
|
||||
VITE_DELETE_ENABLED: "${VITE_DELETE_ENABLED:-}"
|
||||
};
|
||||
EOF
|
||||
|
||||
exec nginx -g "daemon off;"
|
||||
Reference in New Issue
Block a user