Skeleton for Osteo Report MVP. Build passes, 7 smoke tests green, real Horse.svg + Horse_head.svg in public/species/equine/. Zod schemas are the contract; store/anatomy/pdf modules are typed stubs throwing "not implemented" awaiting implementation. Spec: docs/superpowers/specs/2026-05-18-osteo-report-mvp-design.md Plan: docs/superpowers/plans/2026-05-18-osteo-report-mvp.md (23 phases, ~70 TDD tasks) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
903 B
Bash
28 lines
903 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:-Osteo Report}",
|
|
brandName: "${APP_BRAND_NAME:-Osteo Report}",
|
|
footerName: "${APP_FOOTER_NAME:-Osteo Report}",
|
|
tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}"
|
|
};
|
|
EOF
|
|
|
|
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Osteo Report}"
|
|
|
|
# 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;"
|