feat(pwa): move app.logicsrc.com from Turso/libSQL to Postgres via @profullstack/libsql-pg (#218)

Production reads DATABASE_URL (postgres://) through @profullstack/libsql-pg,
which keeps the @libsql/client surface; no query changed. A missing,
non-Postgres or leftover libsql:// URL fails at boot in production. Dev and
tests keep libSQL (file:/:memory:) as a devDependency. Postgres migrations in
src/migrations-pg/ (converted with libsql-pg convert-schema, same file names
so the copied _migrations ledger matches); migrate.mjs picks the dialect.
Tests run against Postgres with PWA_TEST_DATABASE_URL.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Anthony Ettinger 2026-09-25 09:28:40 -07:00 • committed by GitHub
parent c535aaa32c
commit 4ac750e65b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 507 additions and 29 deletions

View file

@ -3,7 +3,7 @@
"version": "0.1.1",
"private": true,
"type": "module",
"description": "LogicSRC credentials — Express + libSQL/Turso app: auth + end-to-end-encrypted team credential sharing.",
"description": "LogicSRC credentials — Express app on Postgres (@profullstack/libsql-pg): auth + end-to-end-encrypted team credential sharing.",
"engines": {
"node": ">=20"
},
@ -14,10 +14,13 @@
"test": "node --test"
},
"dependencies": {
"@libsql/client": "^0.14.0",
"@profullstack/libsql-pg": "^0.1.2",
"@simplewebauthn/browser": "^13.3.0",
"@simplewebauthn/server": "^13.1.0",
"cookie-parser": "^1.4.7",
"express": "^4.21.2"
},
"devDependencies": {
"@libsql/client": "^0.14.0"
}
}