React-Frontend ausliefern, altes Vanilla-Frontend entfernt
- frontend.go: Seitenrouten liefern die index.html (no-cache), gehashte Assets unter /assets dauerhaft cachebar, sonst echtes 404 - /stats als Seite, /stats.html leitet per 301 weiter - Containerfile: Node-Stage baut das Frontend nach web/ - Vite baut nach ../web (gitignored); web/ (Vanilla-JS) gelöscht - notes/frontend.md, deploy.md angepasst Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TiXsPUqw7oeomZ8wZrQW5q
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
728ac9b45e
commit
9cac33d167
@@ -13,6 +13,13 @@ const proxy = { target: backend, changeOrigin: false };
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
// Das Go-Backend liefert das Build aus web/ aus (siehe frontend.go).
|
||||
// emptyOutDir muss explizit an sein, weil das Ziel außerhalb von frontend/
|
||||
// liegt.
|
||||
build: {
|
||||
outDir: "../web",
|
||||
emptyOutDir: true,
|
||||
},
|
||||
server: {
|
||||
proxy: {
|
||||
"/api": proxy,
|
||||
|
||||
Reference in New Issue
Block a user