Commit 8e959a4
committed
feat(db): switch to @clawnify/db dual-binding adapter
Templates now work on both prod (Workers for Platforms + D1) and
preview (Dynamic Workers Facet via env.STORAGE). The shared adapter
in @clawnify/db detects the binding at runtime; no template-side
branching needed.
Fixes the 'Cannot read properties of undefined (reading prepare)'
error on <slug>.draft.clawnify.com where env.DB is not bound.1 parent 3f5a2c9 commit 8e959a4
4 files changed
Lines changed: 543 additions & 315 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments