ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developersโ€ข2y agoโ€ข
2 replies
hanbergsen

Getting 500 error after deploying my NextJS app to Cloudflare Pages.

I am using NextJS v14

I followed all the step here: https://github.com/cloudflare/next-on-pages/tree/main/packages/next-on-pages#quick-start

When I run
npx @cloudflare/next-on-pages
npx @cloudflare/next-on-pages
locally I get no error and a
.vercel
.vercel
dir is generated.

I have also found these tutorials
- https://www.youtube.com/watch?v=A49jpNN4omY
- https://www.youtube.com/watch?v=Ouny4LKe3UM

In the tutorials they also install
wrangler
wrangler
and
vercel
vercel
packages as well as modify the versions of the packages. I have tried this but get the same 500 result.

Any suggestions?
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Cloudflare Pages internal error 500
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Unable to deploy my NextJs in cloudflare pages.
Cloudflare DevelopersCDCloudflare Developers / general-help
5mo ago
my nextjs building is failing on cloudflare pages.
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
500 Error when Deploying Website
Cloudflare DevelopersCDCloudflare Developers / general-help
14mo ago