Problem
examples/blog is the one in-repo app that uses Prisma (SQLite). To run it on the Bun runtime we need Prisma working under Bun, which is the historical rough edge (the query engine + the generated-client resolution). When I probed the blog under Bun it failed before reaching a query, but on the #521 resolution divergence (a stale @prisma/client@7.8.0 from the Bun global cache with no generated .prisma/client/default), so Prisma-on-Bun itself is still UNVERIFIED for our setup.
Design / approach
Once #521 lands (Bun resolves the workspace + the generated client), verify and enable Prisma-on-Bun for the blog:
- Confirm
prisma generate produces a client Bun can load and query against the blog dev.db (count/read/write round-trip).
- If the bundled query engine path needs a Bun-specific binary target or engine type, configure it in
schema.prisma (binaryTargets) or switch engine type as needed.
- Boot the blog under Bun and serve its DB-backed home route; run the blog e2e against the Bun-served app.
- If Prisma-on-Bun proves not viable yet, document the blocker and keep the blog on Node (the framework supports both; the deployed blog can stay Node while the content apps move to Bun).
Depends on #521 and follows #522 in the sequence.
Acceptance criteria
Problem
examples/blogis the one in-repo app that uses Prisma (SQLite). To run it on the Bun runtime we need Prisma working under Bun, which is the historical rough edge (the query engine + the generated-client resolution). When I probed the blog under Bun it failed before reaching a query, but on the #521 resolution divergence (a stale@prisma/client@7.8.0from the Bun global cache with no generated.prisma/client/default), so Prisma-on-Bun itself is still UNVERIFIED for our setup.Design / approach
Once #521 lands (Bun resolves the workspace + the generated client), verify and enable Prisma-on-Bun for the blog:
prisma generateproduces a client Bun can load and query against the blogdev.db(count/read/write round-trip).schema.prisma(binaryTargets) or switch engine type as needed.Depends on #521 and follows #522 in the sequence.
Acceptance criteria
examples/blogboots and serves its DB-backed routes underbun --bun run start.