Incompatibility with NextJS app dir, CloudFlare Pages and D1 #23929
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: Cloudflare Pages
topic: d1
Issues related to Cloudflare D1
topic: driverAdapters
topic: Next.js
topic: @prisma/adapter-d1
Bug description
There are issues when deploying NextJS (app dir) with CloudFlare pages and D1.
How to reproduce
Reproduction at https://github.com/steebchen/next-cf-prisma-d1
git clone git@github.com:steebchen/next-cf-prisma-d1.git
pnpm install
pnpm dev
When running
pnpm build
, it results in this:Executing a server action results in the following error:
The following warning appears using RSCs in dev mode appears (but it still works!):
Expected behavior
It should work. :D
Prisma information
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: