public-web proof of concept

Shared Next.js public app for multi-tenant user sites

This app tests the architecture we discussed: one shared Next.js app, template registry, recipe-driven families, theme control, multi-page mock sites, and an adapter for the current backend public page payload.

Demo routes

Real API-backed route

Set API_URL to your backend.

Then open /u/your-username to see the current GET /api/page/:identifierpayload normalized into the new template/section model.

The existing backend is expected at http://localhost:5000/api.

Custom domain routing

The middleware rewrites incoming custom domain requests to the correct /u/:identifier route.

See how it works, what domains are mapped, and how to test locally.

Open domain debug →