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
other-emerald•5mo ago
what do the logs say?
useful-bronzeOP•5mo ago
Oh, the first question was my fault (__dirname is not defined in ES module) so I corrected it.
But, other problem is occuered.

useful-bronzeOP•5mo ago
And This is my vite.config