chore: initial scaffold + design spec + implementation plan
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>
This commit is contained in:
1 parent
12a3e48fdf
commit
8ca36b5ccd
104 files changed
+12448
No files matched your search
@@ -0,0 +1,27 @@
|
||||
#!/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;"
|
||||
Reference in new issue
Block a user