© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•5mo ago•
1 reply
Barath SR

Unable to deploy my NextJs in cloudflare pages.

I'm using this command to deploy my "NextJs" app:
npm run build && npx next export

My build is successful and next export is failed and returning this message:
⨯
next export
next export
has been removed in favor of 'output: export' in next.config.js. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports

I have read the above article too. It saying me to add output: export in the next.config.js file.
There is already that line added in my next config file.

Please help me to over come this issue.

#general-help
Guides: Static Exports | Next.js
Next.js enables starting as a static site or Single-Page Application (SPA), then later optionally upgrading to use features that require a server.
Guides: Static Exports | Next.js
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

Deploy button on Cloudflare Pages
Cloudflare DevelopersCDCloudflare Developers / general-help
3mo ago
my nextjs building is failing on cloudflare pages.
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
[Resolved] Unable to POST on Cloudflare Pages
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Getting 500 error after deploying my NextJS app to Cloudflare Pages.
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago