I am trying to deploy my strapi application on vercel and it’s built successfully but showing a 404 error. I don’t know where the issue is.
Hi @des2nakulsoft1!
Would love to help support you here.
Have you checked out your build settings? It may be pointing to the wrong directory, perhaps?
its correct directory. i am deploying strapi application this CMS for node js and my database is MySql and the database is hosted in cloud.
Please let me know the solution.
Hey @des2nakulsoft1. Strapi doesn’t run well in serverless environments because it’s intended to run as an an always-on service. It’s better suited to a server where the process can stay running. I’m not saying it’s impossible with serverless, but there are some downsides that most people prefer not to deal with.
Instead, I recommend looking at the Strapi Next.js blog starter walkthrough explaining how to deploy the frontend to Vercel and the backend to Heroku. There’s also a more recent nextjs-corporate-starter monorepo with a frontend
Next.js project and backend
Strapi project that can be deployed separately but work together.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.