Custom Rewrites Breaks in Production mode #25097
Labels
bug
Issue was opened via the bug report template.
please add a complete reproduction
The issue lacks information for further investigation
What version of Next.js are you using?
10.1.3
What version of Node.js are you using?
12.13.1
What browser are you using?
Chrome
What operating system are you using?
Windows
How are you deploying your application?
next start
Describe the Bug
With custom rewrites in next.config.js, the application breaks when hitting /api/ routes in Production mode.
Expected Behavior
The application should not break on /api routes.
A break that occurs in production mode should have occurred in development mode.
To Reproduce
(
rewrites
is then used in config...)An error as follows is experienced:
The text was updated successfully, but these errors were encountered: