Next.js Discord

Discord Forum

How to deployment with Vercel when used basePath

Unanswered
Blue swimming crab posted this in #help-forum
Open in Discord
Avatar
Blue swimming crabOP
When I was experiencing nextjs features, I found that when I used basePath and deployed to Vercel, a 404 error would occur. Should I set any options on Vercel, possibly environment variables? Also, when running on my own server using PM2, the program also has issues. However, when I removed the basePath, it runs normally everywhere. I hope to get some help.

0 Replies