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
4 Replies
Nolan
Nolan2mo 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
OreQr2mo 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
Nolan2mo ago
Gotcha, anything else I can assist with?
OreQr
OreQr2mo 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.