website refactor

This commit is contained in:
2026-01-12 01:01:49 +01:00
parent 5ca6023a5a
commit fefd8d1cd6
294 changed files with 4628 additions and 4991 deletions

View File

@@ -0,0 +1,18 @@
/**
* PageQueryResult discriminated union
*
* Canonical result type for all server-side page queries.
* Defines the explicit outcome of a page query execution.
*
* Based on WEBSITE_PAGE_QUERIES.md:
* - ok with { dto }
* - notFound
* - redirect with { to }
* - error with { errorId }
*/
export type PageQueryResult<TPageDto> =
| { status: 'ok'; dto: TPageDto }
| { status: 'notFound' }
| { status: 'redirect'; to: string }
| { status: 'error'; errorId: string };