You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dev-dx): wasm sqlite fallback, silence PORT warning, dev auth Origin (#1875) (#1898)
Three dev-DX fixes surfaced while runtime-testing templates:
1. SQLite ABI mismatch: dev now falls back native better-sqlite3 → wasm
SQLite → in-memory. When the native binary's ABI doesn't match the
running Node (e.g. Node 25 NODE_MODULE_VERSION mismatch), dev keeps
real SQL + persistence via SqliteWasmDriver instead of dropping to the
non-persistent mingo in-memory driver.
2. PORT warning: add a `{ silent: true }` option to readEnvWithDeprecation
and use it at the OS_PORT/PORT call sites. PORT is an industry-standard
alias that PaaS platforms inject automatically, so warning nagged
operators about env they never set. Other legacy vars still warn.
3. Auth Origin 403: in dev, when a request has neither Origin nor Referer,
handleRequest synthesizes a same-origin Origin from the request URL so
better-auth's CSRF check passes for non-browser clients (curl/scripts).
Production is untouched (gated on NODE_ENV).
Tests: types 7/7, plugin-auth 118/118 (4 new Origin cases + silent option),
cli 322/322; full turbo build (tsc typecheck) passes.
Closes#1875
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dev: Flags.boolean({description: 'Run in development mode (load devPlugins)'}),
150
150
ui: Flags.boolean({description: 'Enable the bundled Console portal at /_console/ when @object-ui/console is installed (default: true)',default: true,allowNo: true}),
0 commit comments