Remote moved to git.bchanot.fr/bchanot/zoosteo.git; brand strings
and production URL updated to match new identity.
- package.json: name → zoosteo
- src/config/env.ts: AppConfig DEFAULTS → "Zoosteo"
- docker/entrypoint.sh: APP_*_NAME fallbacks → "Zoosteo"
- src/i18n/{fr,en}.ts: import error message + PDF title prefix
- src/pdf/attachment.ts: embedded description metadata "state v2"
- index.html: <title> fallback
- scripts/scaffold-species.mjs: console banner
- tests/unit/components.Brand.test.tsx: regex
- README.md, CLAUDE.md, CHANGELOG.md, docs/ADDING-A-SPECIES.md:
brand headings + intro lines
- DEPLOY.md: env defaults table + osteo.example.com → zoosteo.fr
(clone URL, paths, certbot, curl, container name references)
PDF attachment FILENAME 'osteo-report.json' and the startsWith
contract in src/pdf/attachment.ts:35,40 are preserved — changing
them would break PDF import for every PDF already exported by the
app. docs/superpowers/** and .claude/audits/** left unchanged as
historical records.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
28 lines
883 B
Bash
28 lines
883 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:-Zoosteo}",
|
|
brandName: "${APP_BRAND_NAME:-Zoosteo}",
|
|
footerName: "${APP_FOOTER_NAME:-Zoosteo}",
|
|
tagline: "${APP_TAGLINE:-Bilans d'ostéopathie animalière}"
|
|
};
|
|
EOF
|
|
|
|
echo "env.js written: APP_BRAND_NAME=${APP_BRAND_NAME:-Zoosteo}"
|
|
|
|
# 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;"
|