From 2803cf7c7d164ca66b13adb564981fcc31546927 Mon Sep 17 00:00:00 2001 From: Bastien Chanot Date: Sat, 13 Jun 2026 23:41:53 +0200 Subject: [PATCH] fix(editor): serve pathology-editor.html from public/ so it ships to dist MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The file lived at the repo root, where Vite never bundles it (only index.html is the build entry). In production nginx fell through to the SPA index.html and React showed 'Page introuvable' at /pathology-editor.html. Moving it under public/ makes Vite copy it verbatim into dist/, so nginx serves it as a real static file. The /editors link (href=/pathology-editor.html) is unchanged — public/ is the web root. Co-Authored-By: Claude Opus 4.8 (1M context) --- CLAUDE.md | 5 +++-- README.md | 2 +- pathology-editor.html => public/pathology-editor.html | 0 3 files changed, 4 insertions(+), 3 deletions(-) rename pathology-editor.html => public/pathology-editor.html (100%) diff --git a/CLAUDE.md b/CLAUDE.md index 313b0063..867d2086 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -108,7 +108,8 @@ pnpm format # Prettier write ``` osteo/ ├─ public/ -│ └─ species/equine/{Horse,Horse_head}.svg ← real anatomy SVGs +│ ├─ species/equine/{Horse,Horse_head}.svg ← real anatomy SVGs +│ └─ pathology-editor.html ← standalone JSON editor (served as static file) ├─ src/ │ ├─ app/ │ │ ├─ App.tsx ← root router @@ -175,7 +176,7 @@ osteo/ ├─ .claude/{tasks/TODO.md,memory/,audits/} ├─ Dockerfile, docker-compose.yml ├─ .env.example, .editorconfig, .nvmrc, .prettierrc.json -├─ eslint.config.js, index.html, pathology-editor.html +├─ eslint.config.js, index.html ├─ package.json, tsconfig*.json ├─ vite.config.ts, vitest.config.ts ├─ CLAUDE.md, README.md, LICENSE diff --git a/README.md b/README.md index 5dfaf0e4..4f186b61 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ osteo/ ├─ docker/ entrypoint.sh + nginx.conf ├─ docs/ conventions + species guide + PDF spec ├─ index.html SPA entry point -└─ pathology-editor.html standalone pathology JSON editor (no build step) +└─ public/pathology-editor.html standalone pathology JSON editor (served as static file) ``` --- diff --git a/pathology-editor.html b/public/pathology-editor.html similarity index 100% rename from pathology-editor.html rename to public/pathology-editor.html