[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# Unable to deploy strapi application on vercel

116 views · 1 like · 6 posts


Des2nakulsoft1 (@des2nakulsoft1) · 2024-07-16

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.


Pauline P. Narvas (@pawlean) · 2024-07-16

Hi @des2nakulsoft1!

Would love to help support you here. 

Have you checked out your [build settings](https://vercel.com/docs/deployments/configure-a-build#root-directory)? It may be pointing to the wrong directory, perhaps?


Des2nakulsoft1 (@des2nakulsoft1) · 2024-07-16

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.


Des2nakulsoft1 (@des2nakulsoft1) · 2024-07-16

![image|690x392](upload://sEVMg1n67Y6633oQUhgAWSqaTl3.png)

and showing error is
**404**: NOT_FOUNDCode: `NOT_FOUND`ID: `bom1:bom1::hlvvf-1721132558489-b3cbe2588234`


Des2nakulsoft1 (@des2nakulsoft1) · 2024-07-17

Please let me know the solution.


Amy Egan (@amyegan) · 2024-07-17 · ♥ 1

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.

https://docs.strapi.io/dev-docs/faq#can-strapi-be-run-in-serverless-environments

Instead, I recommend looking at the [Strapi Next.js blog starter](https://strapi.io/blog/strapi-online-meetup-4-recap) walkthrough explaining how to deploy the frontend to Vercel and the backend to Heroku. There's also a more recent [nextjs-corporate-starter](https://github.com/strapi/nextjs-corporate-starter) monorepo with a `frontend` Next.js project and `backend` Strapi project that can be deployed separately but work together.