feat(website): apps/website skeleton

Backend (Express + Prisma, ES modules, as Accounts): /api/health and
/api/v1/site/status (Coming soon until the first publish), the content
model and its first migration, and the confirmed section variants per
template (WEBSITE-1.0-PLAN §3, decision 16) with the template switch
rules, with tests. Frontend (Next.js 16): Coming soon page, admin
placeholder, robots.txt. env.template.json, PM2 example, CHANGELOG and
WHATS-NEW. Root workspaces and lint updated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-25 08:41:11 +02:00
co-authored by Claude Opus 5.5
parent a3a158faa8
commit 36ceb358b8
45 changed files with 1617 additions and 12 deletions
+18
View File
@@ -0,0 +1,18 @@
/**
* Everything a request handler or job needs, passed in rather than imported, so tests can run the
* app against a stand-in database.
*/
import type { PrismaClient } from './generated/prisma/client.js';
import type { Config } from './lib/config.js';
export type Db = PrismaClient;
export type Ctx = {
config: Config;
db: Db;
now: () => Date;
};
export function createCtx(config: Config, db: Db, opts: { now?: () => Date } = {}): Ctx {
return { config, db, now: opts.now ?? (() => new Date()) };
}