Skip to content

dogfood: verify and enable Prisma-on-Bun so examples/blog runs on the Bun runtime #523

Description

@vivek7405

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions