fix(editor): serve pathology-editor.html from public/ so it ships to dist

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) <noreply@anthropic.com>
This commit is contained in:
Bastien ChanotandClaude Opus 4.8 committed 2026-06-13 23:41:53 +02:00
1 parent b7fd2fbbc0
commit 2803cf7c7d
3 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -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
+1 -1
View File
@@ -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)
```
---
File renamed without changes.