← Public packages
@kentcdodds/package-app-kit
Design tokens, PWA install/update, About/version, cache helpers, and optional realtime notes sync for Kody package apps.
app/routes.ts
17 lines · 586 B · TypeScriptimport { packageContext } from 'kody:runtime'
import { form, route } from 'remix/routes'
// Hosted apps live under a mount (/packages/<leaf> on the subdomain).
// Prefix the contract so every href(), redirect, and form action stays inside it.
export const routes = route(packageContext?.appBasePath ?? '', {
home: '/',
about: '/about',
notes: form('notes'),
manifest: '/manifest.webmanifest',
icon192: '/icons/icon-192.png',
icon512: '/icons/icon-512.png',
logoBust: '/brand/logo-bust.png',
logoFull: '/brand/logo-full.png',
versionApi: '/api/version',
health: '/health',
})