trails/apps/journal/app
Ullrich Schäfer 6a441675b9
Fix import action crashing in dev when pg-boss is not initialized
The action was doing an internal self-fetch to /api/sync/komoot/import,
which returned plain text on error (boss not initialized) — the JSON.parse
then threw "Unexpected token U". Fix: inline the action logic directly in
the route and fall back to a fire-and-forget runKomootBulkImport call when
pg-boss is unavailable (i.e. dev mode with Vite, not the custom server).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-23 18:55:18 +02:00
..
components Redesign navbar with avatar dropdown and mobile drawer 2026-04-26 09:56:20 +02:00
hooks Implement notifications + supporting fixes 2026-04-26 01:28:55 +02:00
jobs Add background bulk import for Komoot 2026-05-23 18:19:10 +02:00
lib Add background bulk import for Komoot 2026-05-23 18:19:10 +02:00
routes Fix import action crashing in dev when pg-boss is not initialized 2026-05-23 18:55:18 +02:00
entry.client.tsx Add legal pages, ToS acceptance, and alpha banner 2026-04-18 00:08:48 +02:00
entry.server.tsx Consolidate Sentry config into shared package; fix inconsistencies 2026-04-18 00:30:09 +02:00
root.tsx Drop auth.server.ts re-exports + rename to .server.ts convention (task 5.2) 2026-05-08 03:01:30 +02:00
routes.ts Add background bulk import for Komoot 2026-05-23 18:19:10 +02:00