serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
24 lines (20 loc) • 449 B
YAML
service:
name: hello-world
provider:
name: cloudflare
config:
accountId: CLOUDFLARE_ACCOUNT_ID
zoneId: CLOUDFLARE_ZONE_ID
plugins:
- serverless-cloudflare-workers
functions:
helloWorld:
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