Next.js Discord

Discord Forum

This Serverless Function has crashed.

Answered
Czechoslovakian Wolfdog posted this in #help-forum
Open in Discord
Czechoslovakian WolfdogOP
Hello, I use NX to have a monorepo with 2 NextJS apps. Both of them are using app pages. I migrated to the latest version of NX and now, I have Nextjs in the newest version 14.2.3. Locally when I render a page with getServerSideProps, it works. But, when I try on Vercel I get "This Serverless Function has crashed.". Looking in the logs I get this: https://gist.github.com/gersanco/059b671d433a572079e93248f98501d8

I discovered that If I use the app router it works, but I was in a migration process.

https://tuning-bytes-68dgs4xc4-prickle.vercel.app/products
Answered by Czechoslovakian Wolfdog
I think I solved the problem.

I removed
import Head from 'next/head';


And now, looks good
View full answer

1 Reply

Czechoslovakian WolfdogOP
I think I solved the problem.

I removed
import Head from 'next/head';


And now, looks good
Answer