This feat adds support for - [D1 Cloudflare SQLite](https://developers.cloudflare.com/d1/) - R2 storage directly (previously it was via S3 SDK) - Cloudflare 1-click deploy template --------- Co-authored-by: Paul Popus <paul@payloadcms.com>
Payload D1 SQLite Adapter
Official D1 SQLite adapter for Payload.
Installation
npm install @payloadcms/db-d1-sqlite
Usage
import { sqliteD1Adapter } from '@payloadcms/db-d1-sqlite'
export default buildConfig({
// Your config goes here
collections: [
// Collections go here
],
// Configure the D1 adapter here
db: sqliteD1Adapter({
// D1-specific arguments go here.
// `binding` is required and should match the D1 database binding name in your Cloudflare Worker environment.
binding: cloudflare.env.D1,
}),
})
More detailed usage can be found in the Payload Docs.