info-canicule/package.json
Florian 87d173684c
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
feat: OG png + sentry + dept api + drom notice + registre canicule
Quick wins :
- public/og-image.png (1200x630, via sharp depuis le SVG, build via pnpm build)
  SVG ne fonctionne pas pour Open Graph (Slack/Discord/X/FB).
- @sentry/astro intégré conditionnellement (skip si SENTRY_DSN absent → no-op).
  GIT_COMMIT_SHA en var pour le release tag dans GlitchTip si voulu.
- /api/vigilance/dept/[code] : JSON enrichi (phenomenon label + color name)
  pour J et J1, CORS *, Cache-Control 5min. 404 si code unknown.
- JSON-LD enrichi : @graph WebSite + Service avec isBasedOn Dataset + license LOv2.
- Lien retour vigilance.meteofrance.fr visible sous la carte.

DROM (97x / 976) :
- 5 entrées ajoutées dans departements.ts (région "DROM").
- /departement/[code] DROM : bannière "Vigilance Outre-mer non couverte par
  cette source open data" + bouton vers vigilance.meteofrance.fr.
- Home : ligne sous la carte listant les 5 DROM + lien retour.
- L'API /api/vigilance/dept/<DROM> retourne quand même un JSON 200 (arrays vides).

Registre canicule :
- Page /conseils/registre-canicule : qui, quoi, comment s'inscrire au CCAS.
- Numéro vert 0 800 06 66 66.
- Bannière mise en avant en haut de /conseils.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-25 20:59:11 +02:00

33 lines
862 B
JSON

{
"name": "info-canicule",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "astro dev",
"build": "node scripts/build-og-image.mjs && astro build",
"build:og": "node scripts/build-og-image.mjs",
"preview": "astro preview",
"start": "node ./dist/server/entry.mjs",
"astro": "astro",
"check": "astro check",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@astrojs/node": "^9.2.2",
"@astrojs/sitemap": "^3.6.0",
"@astrojs/tailwind": "^6.0.2",
"@sentry/astro": "^10.53.1",
"@tailwindcss/typography": "^0.5.16",
"astro": "^5.7.0",
"ioredis": "^5.6.0",
"tailwindcss": "^3.4.17"
},
"devDependencies": {
"@astrojs/check": "^0.9.4",
"@types/node": "^22.10.5",
"sharp": "^0.34.5",
"typescript": "^5.7.2"
},
"packageManager": "pnpm@10.0.0"
}