mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #609] [CLOSED] feat(examples): add Prisma + Hyperdrive example #709
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#709
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/609
Author: @JamesbbBriz
Created: 3/20/2026
Status: ❌ Closed
Base:
main← Head:examples/prisma-hyperdrive📝 Commits (1)
9bdc879feat(examples): add Prisma + Hyperdrive example for Cloudflare Workers📊 Changes
11 files changed (+317 additions, -0 deletions)
View changed files
➕
examples/prisma-hyperdrive/README.md(+93 -0)➕
examples/prisma-hyperdrive/app/api/items/route.ts(+35 -0)➕
examples/prisma-hyperdrive/app/layout.tsx(+14 -0)➕
examples/prisma-hyperdrive/app/page.tsx(+29 -0)➕
examples/prisma-hyperdrive/lib/db.ts(+29 -0)➕
examples/prisma-hyperdrive/package.json(+33 -0)➕
examples/prisma-hyperdrive/prisma/schema.prisma(+17 -0)➕
examples/prisma-hyperdrive/tsconfig.json(+16 -0)➕
examples/prisma-hyperdrive/vite.config.ts(+15 -0)➕
examples/prisma-hyperdrive/worker/index.ts(+13 -0)➕
examples/prisma-hyperdrive/wrangler.jsonc(+23 -0)📄 Description
Summary
Add a full-stack CRUD example demonstrating Prisma v7 with Hyperdrive on Cloudflare Workers. This is the first database example in the repo — fills a major gap for users migrating data-driven apps to vinext.
What it shows
cloudflare:workersbindingRequest/Response(notNextRequest)Structure
Key pattern: per-request client
This pattern is production-validated — we run it on Workers Free plan (10ms CPU limit) with zero alternating failures.
Blast radius
Zero — new directory only, no changes to existing code.
Relates to #537
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.