Deploying on CloudFlare Pages or Vercel

discord user avatar
AlessioGr
Payload Team
last year
2 1

Hey,
is it possible to deploy Payload CMS to either CloudFlare Pages or Vercel? If yes, could someone give me a very brief step by step guide?

Thank you,
Alessio

  • discord user avatar
    jmikrut
    Payload Team
    last year

    Hey @AlessioGr — we've actually been working with another community member about deploying to Vercel in the following Discussion:

    #519 (comment)

    TL;DR: Vercel is a serverless platform and Payload runs on Express. You can deploy Express apps to Vercel, but they don't recommend it. Check out that link for more info.

    Regarding Cloudflare Pages, I believe that platform is meant to serve static sites, and Payload comes with APIs. So I'm not sure that you'd be able to deploy Payload to Cloudflare Pages.

    3 replies
  • discord user avatar
    AlessioGr
    Payload Team
    last year

    I see, thank you a lot for the explanation! As for Cloudflare, you can probably use "Workers", but I guess that has the similar limitations as Vercel serverless functions

  • default discord avatar
    balupton
    9 months ago

    So Cloudflare Pages is just some tooling around Cloudflare Workers and KV to make edge static and dynamic sites possible, it is Cloudflare's competitor to Vercel. So Remix and Astro sites deployed to Cloudflare Pages support static assets, ssr, edge functions, and client components; plus the benefits of cloudflare; worlds largest cdn and ddos protection, kv, d1, r2, queue, etc. That said, the Cloudflare suggestion is best suited by #1525

  • default discord avatar
    balupton
    9 months ago

    For facilitation of the various serverless platforms, swapping out express for https://github.com/honojs/hono might be a good move

Open the post
Continue the discussion in GitHub
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.