create-cloudflare
Version:
A CLI for creating and deploying new applications to Cloudflare.
33 lines (30 loc) • 595 B
text/typescript
import type { TemplateConfig } from "../../src/templates";
const config: TemplateConfig = {
configVersion: 1,
id: "queues",
displayName: "Queue consumer & producer Worker",
description:
"Get started with a Worker that processes background tasks and message batches with Cloudflare Queues",
platform: "workers",
copyFiles: {
variants: {
js: {
path: "./js",
},
ts: {
path: "./ts",
},
},
},
bindings: {
queues: [
{
boundVariable: "MY_QUEUE",
defaultValue: "my-queue",
producer: true,
consumer: true,
},
],
},
};
export default config;