Deployment fails

Hi everyone! I'm trying to build nextjs app with authjs via prisma and d1 database. Everyting works great on local enviroment without any errors on build and preview but when I try to deploy my deployment fails and I don't know why. Where can I see error logs from deployments? Deployment ID: 7b7f1b3e-641d-45b2-b0b4-d3a099ca5f19 Account ID: a953ae5b6c3ea96e30adb99c9a34804e
9 Replies
Nolan
Nolan8mo ago
Hey there! it looks like we received a edge_deployment_failed error with a functions file too large error.
deploy_worker_failed:Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)
deploy_worker_failed:Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)
OreQr
OreQrOP8mo ago
Thanks, now I see that prisma add almost 2 MiB wasm file to workers. When I removed prisma adapter from auth.ts wasm file disappeared.
Nolan
Nolan8mo ago
Gotcha, anything else I can assist with?
OreQr
OreQrOP8mo ago
I don't think so, thanks for your help. I read on prisma github that it is on their side and nothing can be done about it currently. I'm switching to drizzle.
trace
trace5mo ago
Hey were you able to make it work with drizzle?
OreQr
OreQrOP5mo ago
Yes, drizzle work great on edge and it is more performent
trace
trace5mo ago
Do you have any public repo I am check? Been trying to integrate it and running into problems
OreQr
OreQrOP5mo ago
unfortunately not now because I moved to self hosted
trace
trace5mo ago
Ohh cool cool
Want results from more Discord servers?
Add your server