-
Bug descriptionI use prisma orm in cloudflare worker environment, but deploy failed in the cloudflare dashboard and deploy success in the cli.
How to reproduceWill you try this branch https://github.com/iflamed/hono-react-ssr-shadcn-ui/tree/prisma-debug, Follow these command below will deploy success in the cli, but failed on the cloudflare dashboard.
Expected behaviorDeploy success in cloudflare dashboard. Prisma informationschema.prisma
const adapter = new PrismaD1(c.env.DB)
const prisma = new PrismaClient({ adapter }) // this line will result deploy failed. Environment & setup
Prisma Version
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The best way to get around this problem is to upgrade to a paid Cloudflare Workers account, that one has a higher limit which will not be hit so deployment should work. Unfortunately Prisma is pretty big, so if your app itself also takes up some space it is pretty easy to hit that limit. |
Beta Was this translation helpful? Give feedback.
Finally I switched to drizzle-orm. I was using Prisma, which is too big for cloudflare sites. For free users of cloudflare, there is a 1MB size limit for each worker script.