Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.03 KB

export-no-custom-routes.md

File metadata and controls

19 lines (12 loc) · 1.03 KB

next export No Custom Routes

Why This Error Occurred

In your next.config.js rewrites, redirects, or headers were defined while next export was being run outside of a platform that supports them.

These configs do not apply when exporting your Next.js application manually.

Possible Ways to Fix It

Disable the rewrites, redirects, and headers from your next.config.js when using next export to deploy your application or deploy your application using a method that supports these configs.

Useful Links