@lucidcms/cloudflare-adapter
v1.1.0
Published
The official Cloudflare Worker adapter for Lucid CMS
Downloads
11
Maintainers
Readme
Lucid - Cloudflare Worker Adapter
The official Cloudflare Worker adapter for Lucid CMS
Installation
npm install @lucidcms/cloudflare-adapterlucid.config.ts/js
import { cloudflareAdapter, defineConfig } from "@lucidcms/cloudflare-adapter";
export const adapter = cloudflareAdapter();
export default defineConfig((env) => ({
// ...config
});Wrangler
{
"$schema": "../../node_modules/wrangler/config-schema.json",
"name": "lucid-cms",
"main": "dist/server.js",
"compatibility_date": "2025-06-12",
"compatibility_flags": [
"nodejs_compat"
],
"assets": {
"directory": "./dist/public/",
"binding": "ASSETS",
},
"triggers": {
"crons": [
"0 0 * * *"
]
},
"build": {
"watch_dir": "./src",
"command": "lucidcms build --cache-spa --silent",
"cwd": "./"
}
}