Give the server, React entry, shared hooks and scripts headers that explain their role and pitfalls

Document how server.mjs keeps the site up when an API is misconfigured and
reports it on /api/health, the cache and CSP policy, the share API's
synchronous reservation, the trust placed in X-Forwarded-For, the hooks main.jsx
wires once, and how to run each script. The deploy script header now recalls
that CI runs the copy installed on the server.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 11:00:04 +01:00
parent fe21c2d899
commit d8c94f6834
24 changed files with 167 additions and 37 deletions

View file

@ -1,5 +1,8 @@
/**
* @file Démarre le build avec une base Sokko TCG temporaire pour les parcours Playwright.
* @file Démarre le build servi par Node avec une base Sokko TCG temporaire, pour les parcours Playwright du TCG.
*
* Utilisé par : playwright.cards.config.js (`npm run test:e2e:cards`), sur le port 4180.
* @see e2e/README.md
*/
import { appendFileSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";