Mariusz Nowak 3089abc5c4 feat(Templates): Ensure "frameworkVersion" in all templates
As it's now a required setting when relying on globally installed "serverless"
2020-09-02 14:37:49 +02:00

25 lines
463 B
YAML

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