Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 996 Bytes

export-no-custom-routes.mdx

File metadata and controls

22 lines (15 loc) · 996 Bytes
title
Export Custom Routes

Why This Error Occurred

In your next.config.js you defined rewrites, redirects, or headers along with output: 'export' (or you ran next export).

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

Possible Ways to Fix It

  • Remove rewrites, redirects, and headers from your next.config.js to disable these features or
  • Remove output: 'export' (or next export) in favor of next start to run a production server

Useful Links