- Brand component now renders horizontal SVG logo instead of text - New AppHeader shared component replaces per-route header boilerplate - Tagline updated to "Outils pour ostéopathes animaliers" - All routes use AppHeader (HomeRoute, EditorsRoute, NewReportRoute, SvgEditorRoute) - ReportHeader and Footer simplified - DEPLOY.md URLs updated zoosteo.fr → faunosteo.com - Logo assets added (favicon.svg, logo-horizontal.svg, apple-touch-icon.png) - Removed unused eslint-disable directive in SvgEditorRoute Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
28 lines
893 B
Bash
28 lines
893 B
Bash
#!/bin/sh
|
|
# Injects runtime env vars into /usr/share/nginx/html/env.js
|
|
# which is loaded by index.html before the React bundle.
|
|
# Values come from Docker env vars (set via env_file in docker-compose.yml).
|
|
|
|
set -e
|
|
|
|
ENV_JS="/usr/share/nginx/html/env.js"
|
|
|
|
cat > "$ENV_JS" <<EOF
|
|
window.__APP_CONFIG__ = {
|
|
siteName: "${APP_SITE_NAME:-Faunosteo}",
|
|
brandName: "${APP_BRAND_NAME:-Faunosteo}",
|
|
footerName: "${APP_FOOTER_NAME:-Faunosteo}",
|
|
tagline: "${APP_TAGLINE:-Outils pour ostéopathes animaliers}"
|
|
};
|
|
EOF
|
|
|
|
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Faunosteo}"
|
|
|
|
# Replace PORT placeholder in nginx config if needed
|
|
# (nginx:alpine supports envsubst via templates; we keep it explicit)
|
|
export PORT="${PORT:-8080}"
|
|
envsubst '${PORT}' < /etc/nginx/conf.d/default.conf > /tmp/nginx_default.conf
|
|
cp /tmp/nginx_default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
exec nginx -g "daemon off;"
|