3f35608fdc
fix NEXT-928 ([link](https://linear.app/vercel/issue/NEXT-928))
1,008 B
1,008 B
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
, andheaders
from yournext.config.js
to disable these features or - Remove
output: 'export'
(ornext export
) in favor ofnext start
to run a production server