Closed VinSpee closed 2 years ago
It's not well documented, but serverless
has issues. Did you try instead using experimental-serverless-trace
?
More context: https://github.com/vercel/next.js/issues/20487#issuecomment-753884085
target
is now deprecated. https://nextjs.org/blog/next-12#output-file-tracing
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
What version of Next.js are you using?
11.0.1
What version of Node.js are you using?
14.17.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
netlify
Describe the Bug
Hi!
I am attempting to deploy via Netlify. Their config recommends
target: 'serverless'
in mynext.config.js
. Setting this value results in this build error:If i disabled
target: 'serverless'
, I can build just fine:I have tried disabling
webpack5
, and have tried the latest canary builds (up to11.0.1-canary.8
)Expected Behavior
the build to succeed, or provide a more useful error message in the case of a real error.
To Reproduce
next.config.js
> next build