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:
1 parent
b7fd2fbbc0
commit
2803cf7c7d
3 files changed
+4
-3
No files matched your search
@@ -108,7 +108,8 @@ pnpm format # Prettier write
|
|||||||
```
|
```
|
||||||
osteo/
|
osteo/
|
||||||
├─ public/
|
├─ 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/
|
├─ src/
|
||||||
│ ├─ app/
|
│ ├─ app/
|
||||||
│ │ ├─ App.tsx ← root router
|
│ │ ├─ App.tsx ← root router
|
||||||
@@ -175,7 +176,7 @@ osteo/
|
|||||||
├─ .claude/{tasks/TODO.md,memory/,audits/}
|
├─ .claude/{tasks/TODO.md,memory/,audits/}
|
||||||
├─ Dockerfile, docker-compose.yml
|
├─ Dockerfile, docker-compose.yml
|
||||||
├─ .env.example, .editorconfig, .nvmrc, .prettierrc.json
|
├─ .env.example, .editorconfig, .nvmrc, .prettierrc.json
|
||||||
├─ eslint.config.js, index.html, pathology-editor.html
|
├─ eslint.config.js, index.html
|
||||||
├─ package.json, tsconfig*.json
|
├─ package.json, tsconfig*.json
|
||||||
├─ vite.config.ts, vitest.config.ts
|
├─ vite.config.ts, vitest.config.ts
|
||||||
├─ CLAUDE.md, README.md, LICENSE
|
├─ CLAUDE.md, README.md, LICENSE
|
||||||
|
|||||||
@@ -127,7 +127,7 @@ osteo/
|
|||||||
├─ docker/ entrypoint.sh + nginx.conf
|
├─ docker/ entrypoint.sh + nginx.conf
|
||||||
├─ docs/ conventions + species guide + PDF spec
|
├─ docs/ conventions + species guide + PDF spec
|
||||||
├─ index.html SPA entry point
|
├─ 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.
Reference in new issue
Block a user