Deploy with vercel throws 'This Serverless Function has crashed.'
Hi I'm trying to deploy my project with vercel.
I can run well in my local, and build successed.
But, when I deploy to vercel, 'This Serverless Function has crashed.' are shown.
I already set deploy target to 'vercel' in my vite.config.js.
What should I do? 😿


3 Replies
extended-salmon•2mo ago
what do the logs say?
quickest-silverOP•2mo ago
Oh, the first question was my fault (__dirname is not defined in ES module) so I corrected it.
But, other problem is occuered.

quickest-silverOP•2mo ago
And This is my vite.config