refactor: RAPPORT-HOST ist jetzt reines Backend

Das Frontend (Marketing + Login/Konto) ist in RAPPORT-WEBSITE umgezogen
(Hugo + Vanilla-JS). RAPPORT-HOST liefert dessen gebautes public/ statisch
aus und stellt /api bereit.

- server/index.js: serviert RAPPORT-WEBSITE/public + /api (eine Origin)
- server/env.js: websitePublicDir (WEBSITE_PUBLIC_DIR, Default Schwester-Repo);
  PUBLIC_BASE_URL Default auf einheitliche Origin :8787
- billing.js: Checkout-Redirects auf /konto/ bzw. /hosting-preise/
- entfernt: src/ (React), marketing/ (Hugo-Kopie), index.html, vite.config.js
- package.json: nur noch server/migrate/build:website-Scripts

E2E verifiziert: /, /hosting/, /login/, /konto/, /js + Font = 200;
register→checkout(mock)→Instanz; Redirect → /konto/?provisioned=1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 16:41:09 +02:00
parent 07485024cd
commit 13173dddc5
8 changed files with 61 additions and 44 deletions
+4 -2
View File
@@ -1,9 +1,11 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// Frontend läuft auf :5273, Backend auf :8787 — /api wird durchgeproxt,
// damit im Dev kein CORS nötig ist und Prod-URLs identisch bleiben (/api/...).
// Die React-App wird in Produktion unter /app/ ausgeliefert (base), die
// Hugo-Marketing-Site liegt unter /. Im Dev läuft Vite auf :5273 und proxt
// /api → Backend, damit kein CORS nötig ist und die URLs identisch bleiben.
export default defineConfig({
base: "/app/",
plugins: [react()],
server: {
port: 5273,