You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating API routes introduced in #7296 using the serverless target, they break in development because of this line where it tries to resolve the files in the serverless folder which doesn't exist in development. The solution would be to add a check for this.renderOpts.dev as we do here.
You can reproduce this by doing the following:
Create a API route in pages/api
Run now dev
Try accessing the route
There should be an error
The text was updated successfully, but these errors were encountered:
When creating API routes introduced in #7296 using the
serverless
target, they break in development because of this line where it tries to resolve the files in theserverless
folder which doesn't exist in development. The solution would be to add a check forthis.renderOpts.dev
as we do here.You can reproduce this by doing the following:
pages/api
now dev
The text was updated successfully, but these errors were encountered: