Apps
apps/web
The public-facing Aurea website — Next.js 15 with Payload CMS 3 as an embedded headless content backend.
Overview
apps/web is the public Aurea website. It runs on Next.js 15 (App Router) and embeds
Payload CMS 3 directly in the Next.js process — no separate CMS server required.
- Port: 3000
- Package name:
@aurea/web
Technology
| Concern | Library |
|---|---|
| Framework | Next.js 15 (App Router, standalone output) |
| CMS | Payload CMS 3 (@payloadcms/next, @payloadcms/db-postgres) |
| Rich text | Payload Lexical editor |
| Styling | Tailwind CSS 4 |
| UI components | @repo/ui |
| Database | PostgreSQL (PAYLOAD_DATABASE_URL) |
Key environment variables
| Variable | Description |
|---|---|
PAYLOAD_DATABASE_URL | PostgreSQL connection string for Payload |
PAYLOAD_SECRET | Payload session secret (generate a random 32-char string) |
NEXT_PUBLIC_SITE_URL | Canonical URL (e.g. http://localhost:3000) |
Payload collections
Payload collections are defined in payload.config.ts. The CMS admin panel is available at
http://localhost:3000/admin in development.
Scripts
bun run dev # next dev --port 3000
bun run build # next build
bun run start # next start --port 3000
bun run generate:types # payload generate:types