brackt/database
Chris Parsons 740ffbb411
fix: exclude database/context from browser bundle to fix Docker build (#2)
database/context.ts uses AsyncLocalStorage from node:async_hooks which
is a Node.js-only API. Vite externalizes it for browser builds but the
resulting error "AsyncLocalStorage is not exported by __vite-browser-external"
caused npm run build to fail.

Fix: add a Vite resolve.alias for the browser (non-SSR) build that maps
~/database/context to a browser-safe stub. The stub is never called at
runtime since database() is only invoked in server-side loaders, but it
allows the client bundle to build without errors.

https://claude.ai/code/session_01Fjf9WFqNnuHmmC5yTedL7G

Co-authored-by: Claude <noreply@anthropic.com>
2026-02-19 11:54:32 -08:00
..
context.browser-stub.ts fix: exclude database/context from browser bundle to fix Docker build (#2) 2026-02-19 11:54:32 -08:00
context.ts Initial commit from create-react-router 2025-10-10 23:04:50 -07:00
schema.ts Change participant expectedValue from integer to decimal (#1) 2026-02-19 11:26:40 -08:00