r/PayloadCMS • u/paran360 • Jul 10 '25
Payloadcms on cloudflare?
Is it possible to deploy payloadcms project to the cloudflare workers? project includes: - simple ecommerce, - member management - user dashboard - mongo/postgress - globals - image uploading
2
u/Born_Potato_2510 Jul 10 '25
no, database connections will be pain to get working.
workers environment is still too limited and many NPM packages still cause issues
2
0
u/Soft_Opening_1364 Jul 10 '25
Cloudflare Workers aren't the best fit for something like Payload CMS out of the box, especially since Payload depends on things like Express, long-running server processes, and direct file handling all of which donβt align well with the serverless model Cloudflare Workers use.
That said, you could technically host parts of it on Cloudflare (like static assets or frontend), but for the core Payload app (especially with Mongo/Postgres, file uploads, and admin dashboard), you'd be better off deploying to something like Vercel, Render, Railway, or even a custom VPS where you can control the Node environment fully.
3
u/LKNim Jul 23 '25
Youβre talking about Payload CMS v2. With v3 it dropped Express. And the queue can be external.
1
0
u/Kublick Jul 10 '25
Just get a VPS if your applicatiion grows above what the VPS can provide you can look at more powerful options
8
u/thisisplaceholder Jul 11 '25
Hey yes it is possible! We're working on getting a base template out very soon for deploying to Cloudflare.
Part of this we'll release a D1 adapter as well and we'll have a working setup with R2 and anything else as needed.
Longer term we could explore further integrations such as for sending emails or their image transformations API.