mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
31 lines
555 B
YAML
31 lines
555 B
YAML
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
|
|
|
|
custom:
|
|
domain: example.com
|
|
|
|
functions:
|
|
hello:
|
|
name: hello
|
|
webpack: webpack.config.js
|
|
script: helloWorld
|
|
events:
|
|
- http:
|
|
url: ${self:custom.domain}/hello/*
|
|
method: GET
|
|
|
|
resources:
|
|
wasm:
|
|
- variable: WASM
|
|
file: rust-wasm/pkg/rust_wasm_bg.wasm
|