mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-07-14 17:05:56 -04:00
- 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
20 lines
503 B
TOML
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'
|