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
+5 -14
View File
@@ -3,21 +3,12 @@
"version": "0.1.0",
"type": "module",
"private": true,
"description": "RAPPORT-HOST — kommerzielle Hosting-/Abo-Plattform für Rapport-Instanzen (proprietär)",
"description": "RAPPORT-HOST — Backend für die kommerzielle Hosting-/Abo-Plattform (proprietär). Frontend lebt in RAPPORT-WEBSITE.",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"server": "node --watch server/index.js",
"server:migrate": "node server/migrate.js",
"dev:all": "echo 'In zwei Terminals: npm run server und npm run dev'"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.1",
"vite": "^5.4.0"
"start": "node server/index.js",
"migrate": "node server/migrate.js",
"build:website": "cd ../RAPPORT-WEBSITE && hugo --quiet --baseURL / --destination public",
"dev": "npm run build:website && npm run server"
}
}