- spa_server.py: strip /magpie prefix before API check and file lookup; all HTTP methods call _normalise_path() first so /magpie/api/v1/* proxies correctly and /magpie/assets/* resolve against the dist root - manage.sh: pass --base /magpie to spa_server.py so the handler knows the deployment prefix - main.ts: pass import.meta.env.BASE_URL to createWebHistory so Vue Router strips the /magpie prefix before matching routes Without these fixes, assets returned index.html (MIME type error), API calls returned HTML instead of JSON (stats.posts undefined), and router routes never matched (matched: []). Closes: #12 |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| tsconfig.json | ||
| vite.config.ts | ||