15

I have a nextjs app deployed to Vercel, and am trying to deploy the Strapi cms that manages it to Vercel too, as it would be easier to maintain both on the same service.

The Strapi repo builds fine, and everything is green, but I either see a 404 if all settings are default, or a blank page if I set the build folder to be "build".

I'm sure it should be a simple fix, but I can't figure it out, has anyone done this?

user1003572
  • 151
  • 1
  • 1
  • 4
  • I think the answer is somewhere in [vercel.json](https://vercel.com/docs/configuration). I haven't found yet, I'm still looking – frouo Feb 08 '21 at 00:41

5 Answers5

7

I don't think there's a way to deploy Strapi to Vercel.

Vercel is a frontend focused deploy service, while Strapi is a backend tool with a web interface.

gfpacheco
  • 2,831
  • 2
  • 33
  • 50
2

As @gfpacheco says, you can't deploy Strapi CMS in Vercel, but you can do it in other platforms. I have personally used Heroku and their free tier. You can learn more this deployment option and others in Strapi's documentation

Make sure to follow the official docs. Strapi is evolving fasts and tutorials quickly become obsolete.

nonameable
  • 426
  • 3
  • 11
0

I think you can deploy the Strapi app and just make sure you have an access to your remote database somewhere else like an heroku or supabase db

starball
  • 20,030
  • 7
  • 43
  • 238
Dupflo
  • 305
  • 3
  • 7
  • Vercel does have Postgres now in their storage offer and Strapi supports Postgres as a database backend. – CodeManX Jun 17 '23 at 19:10
-1

Vercel is built to deploy mostly front end. I cam across this problem myself with Ghost CMS. They have a variety of CMS integrations that can be brought in, like Butter CMS and Contentful. However you can deploy Strapi to Digital Ocean and Heroku. I'm partial to heroku.

Deploy a Next.js Blog Starter Using Strapi on Vercel

Aaron Toliver
  • 187
  • 1
  • 3
  • 16
-1

We cannot host strapi on vercel is cause vercel is front end focused hosting. In that case Hosting on amazon lightsail would help you reduce the cost for hosting the Strapi application. This document would help.

https://medium.com/@leodeo/deploying-strapi-version-4-on-linode-or-any-cloud-host-using-pm2-via-github-and-accessing-it-from-da87b52b7202

Prawesh Lamsal
  • 161
  • 1
  • 10