Getting Internal Server Error while deploying a nextjs application

13:20:12.860 Failed: an internal error occurred
13:20:12.860 Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 66888a5a-921b-41c0-83e5-9993d50a6acc
13:20:12.860 Failed: an internal error occurred
13:20:12.860 Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 66888a5a-921b-41c0-83e5-9993d50a6acc
There is no additional error message the log message before this says
13:20:08.053 ✨ Compiled Worker successfully
13:20:08.142 Found _routes.json in output directory. Uploading.
13:20:08.161 Validating asset output directory
13:20:08.053 ✨ Compiled Worker successfully
13:20:08.142 Found _routes.json in output directory. Uploading.
13:20:08.161 Validating asset output directory
It does not seem to be nextjs related. My nextjs version is 13.4.13 Unfortunately the code is not open source
16 Replies
James
James16mo ago
Are you using the cache property in fetch calls by any chance? I just woke up and skipped the deploying part Facepalm
Erisa
Erisa16mo ago
?pages-deployment-id
Flare
Flare16mo ago
The Pages deployment ID is a unique build identifier. It's the UUID in the browser bar (for example, a URL would be dash.cloudflare.com/ACCOUNT_ID/pages/view/PROJECT/DEPLOYMENT_ID where the deployment ID looks something like a398d794-7322-4c97-96d9-40b5140a8d9b). This ID can help troubleshoot some issues with Pages builds so if you have a failing build make sure you grab that ID for the Pages team to use.
Erisa
Erisa16mo ago
If you get this then I can check if there any internal logs for the error
Foxikira
FoxikiraOP16mo ago
66888a5a-921b-41c0-83e5-9993d50a6acc yeah here it is it was in the log snippet i posted I only have one api route which already set as edge runtime. Also a function in my functions directory which if i am not mistaken should deploy already as a standalone function
James
James16mo ago
The functions directory won't work when using @cloudflare/next-on-pages since we generate our own worker, so you should move whatever you have in the functions directory to Next.js Edge API routes instead.
Foxikira
FoxikiraOP16mo ago
oh that might be the problem thank you
Erisa
Erisa16mo ago
Error: Pages only supports files up to 26.2 MB in size
lower_jaw.stl is 32.3 MB in size
Error: Pages only supports files up to 26.2 MB in size
lower_jaw.stl is 32.3 MB in size
Foxikira
FoxikiraOP16mo ago
oh ok thank you
Erisa
Erisa16mo ago
that should have showed on the logs on your side as well, did it not?
Foxikira
FoxikiraOP16mo ago
doesnt seems like it did
Erisa
Erisa16mo ago
Odd Thanks for letting me know
Foxikira
FoxikiraOP16mo ago
i can send you the full log output on my end as a dm if you want
Erisa
Erisa16mo ago
It's okay, I can access that log too its just a few more buttons
Foxikira
FoxikiraOP16mo ago
ok thank you very much again
Erisa
Erisa16mo ago
No problem
Want results from more Discord servers?
Add your server