mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
32 lines
520 B
YAML
32 lines
520 B
YAML
service:
|
|
name: hello-world
|
|
|
|
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
|