60e5ef6844
All-in-One docker-compose-Stack (Muster von RAPPORT-SERVER gespiegelt): db/auth/rest/kong + cms-Service (Node-API + Hugo-Binary 0.161.1 + Admin-SPA). - DB-backed: posts-Tabelle kanonisch, MD ist generiertes Artefakt - echte Hugo-Vorschau via draft:true + --buildDrafts → /_preview - Publish: DB → content/library/<section>/<slug>.md → hugo build → live - Bild-Upload nach static/images/, Supabase-Auth schützt /api/* - Proxmox-LXC-Script: legt Container an, generiert Secrets, startet Stack Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
16 lines
415 B
JavaScript
16 lines
415 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// base /admin/ — die SPA wird vom CMS-Container unter /admin serviert.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
base: '/admin/',
|
|
server: {
|
|
// Dev: API + /_preview vom laufenden Container durchreichen.
|
|
proxy: {
|
|
'/api': 'http://localhost:8080',
|
|
'/_preview': 'http://localhost:8080',
|
|
},
|
|
},
|
|
});
|