Embed frontend dist into Go binary; remove frontend path from health

- New backend/embed package embeds frontend dist/ via //go:embed
- Go binary serves frontend from embedded FS (no external files needed)
- Dev mode uses placeholder dir (dev.txt) so Go compiles; Vite handles
  frontend in dev mode
- Makefile copies frontend/dist/ to backend/embed/dist/ during build
- Removed FRONTEND_DIR env var and filesystem serving fallback
- Removed frontend path from Health API response and Status page frontend
  section (only Served boolean remains)
- Removed frontendDir from Handler struct/constructor (unused)
This commit is contained in:
MrFastwind
2026-07-09 15:27:50 +02:00
parent 2d301b95b6
commit bc0a252d7d
8 changed files with 33 additions and 29 deletions

View File

@@ -78,7 +78,6 @@ export default function Status() {
<Section title="Frontend">
<StatusRow label="Served" value={data.frontend.served ? 'Yes' : 'No'} ok={data.frontend.served} />
<StatusRow label="Path" value={data.frontend.path ? <CopyPath path={data.frontend.path} /> : '-'} />
</Section>
</div>

View File

@@ -77,7 +77,6 @@ export interface ServerHealth {
}
frontend: {
served: boolean
path: string
}
}