Files
sofa/nixpacks.toml
T
jake 1670c6f494 feat(web): add page titles, staleTime, and lift auth redirect into layout
- Add `head()` with document titles to dashboard, explore, settings, setup, login, register, and person detail routes
- Return `personName` from the person detail loader so the title can be set server-side instead of after data loads
- Add `staleTime` to all loader routes (30s for dashboard/settings, 60s for explore/titles/people)
- Move the "redirect if already authenticated" `beforeLoad` guard from individual login/register routes into the shared `_auth` layout so it runs once for all unauthenticated routes
- Add a Cloud deploy section to the README with a one-click Railway button
2026-03-19 16:47:23 -04:00

20 lines
503 B
TOML

# Nixpacks configuration for Sofa
# Bun runtime auto-detected via packageManager field in package.json
[variables]
NODE_ENV = 'production'
PORT = '3000'
HOSTNAME = '0.0.0.0'
DATA_DIR = './data'
# Install phase — auto-detected (bun install --frozen-lockfile)
[phases.install]
cacheDirectories = ['node_modules']
[phases.build]
cmds = ['bunx turbo run build --filter=@sofa/web --filter=@sofa/server']
cacheDirectories = ['.turbo', 'node_modules/.cache']
[start]
cmd = 'bun apps/server/src/index.ts'