UNPKG

serverless

Version:

Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more

25 lines (20 loc) 499 B
service: hello-world # NOTE: update this with your service name frameworkVersion: '2' provider: name: cloudflare config: accountId: CLOUDFLARE_ACCOUNT_ID zoneId: CLOUDFLARE_ZONE_ID plugins: - serverless-cloudflare-workers functions: hello: name: hello script: helloWorld # there must be a file called helloWorld.js events: - http: url: example.com/hello/* method: GET headers: foo: bar x-client-data: value