13173dddc5
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>
17 lines
475 B
JavaScript
17 lines
475 B
JavaScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// 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,
|
|
proxy: {
|
|
"/api": "http://localhost:8787",
|
|
},
|
|
},
|
|
});
|