ben willkommen c2d72e03cc Fixed cloudflare templates
Updated package.json from 0.1.1 to 1.0.5 of serverless-cloudflare-workers plugin for both cloudflare templates. Fixed an issue with the serverless.yml files in the templates: serverless-cloudflare-workers does throws an exception on serverless deploy of the name property of the function does not match the function name.
2018-12-19 19:23:34 -06:00

24 lines
444 B
YAML

service:
name: hello-world
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