Cloud
Connects a Payload instance to Payload Cloud's managed S3 storage, Cloudflare CDN upload caching, and Resend email delivery.
Installation
pnpm add @payloadcms/plugin-cloud About
The Payload Cloud plugin wires a self-hosted Payload instance into the managed infrastructure that Payload Cloud provides. It only activates when the `PAYLOAD_CLOUD` environment variable is set to `true` and the expected credentials are in place; otherwise the incoming config is returned unchanged and the instance behaves normally. For every upload collection it sets `disableLocalStorage: true`, registers a custom static handler that reads files from an S3 bucket fronted by Cloudflare's CDN, and adds `beforeChange` and `afterDelete` hooks to push uploads to and remove them from S3. AWS credentials for bucket access are obtained through a Cognito identity pool, configured via a set of `PAYLOAD_CLOUD_COGNITO_*` environment variables. Upload caching sits on top of Cloudflare's CDN and defaults to a 24-hour max-age. It can be overridden globally or per collection slug, and the cache is purged whenever an upload is updated or deleted. Email delivery is handled through Resend's SMTP endpoint via the bundled nodemailer adapter, with a default `from` address derived from the deployed domain or any whitelisted custom domains. An existing email transport in the Payload config takes precedence over the cloud email setup. The plugin also coordinates Payload's jobs queue so that `config.jobs.autoRun` only fires on a single instance, using a hidden `payload-cloud-instance` global to elect the runner. This can be turned off with `enableAutoRun: false`. Each feature (storage, email, upload caching) can be individually disabled through plugin options.
Package info
- Package name
@payloadcms/plugin-cloud- Latest version
3.0.4- Unpacked size
- 91 kB
- License
- MIT
- Weekly downloads
- 2.6k
- Last publish
- Mar 14, 2025
More from payloadcms
View profileZapier
Sends Zapier webhook events when Payload collection documents are created, updated, or deleted.
Form Builder
Official Payload plugin that lets admins build forms, collect submissions, send templated emails, and optionally process payments or uploads.
Nested Docs
Adds parent-child document hierarchies with auto-generated breadcrumbs to Payload collections.
Stripe
Syncs Payload collections with Stripe resources and routes Stripe webhooks and API calls through Payload.
Search plugin
Search plugin for Payload enables fast searching of document records.
Sentry
Integrates Sentry error tracking into Payload applications.
Similar plugins
More in StorageUpstash KV adapter
Integrates Upstash as a key-value storage solution for Payload.
Bunny Storage Adapter
Bunny.net storage and stream adapter for Payload CMS with TUS resumable uploads and CDN cache purging.
S3 Upload
Routes Payload CMS upload collections to Amazon S3, pushing the original file and every image size variant.
Cloud Storage
This plugin integrates cloud storage options into Payload CMS.
SFTP storage adapter
SFTP adapter for storing files in Payload CMS using cloud storage.
FTP storage adapter
Integrates FTP storage with Payload CMS for remote file management.