Build Map
Field guide
Persistence
Dual-mode Postgres: embedded PGLite while building in preview, Neon when the platform injects DATABASE_URL on publish. Same getSql() API either way.
| Capability | Spec | Claim |
|---|---|---|
| Preview DB | PGLite in-memory — wiped on restart, no extensions | template |
| Deployed DB | Neon via injected DATABASE_URL | template |
| Schema | migrations/*.sql · 0001_auth frozen · app tables from 0002+ | template |
| Blob / file storage | Not pre-wired (static public/ + DB rows; no Blob skill default) | template |
| Neon storage GB | Not published in template — platform-provisioned | unknown |
authMiddleware → context.userId.public/.