serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
35 lines (30 loc) • 603 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
events:
- http:
url: example.com/hello/*
method: GET
headers:
foo: bar
x-client-data: value
foo:
name: foo_script
script: bar
events:
- http:
url: example.com/foo/*
method: GET
headers:
foo: bar
x-client-data: value