serverless
Version:
Serverless Framework - Build web, mobile and IoT applications with serverless architectures using AWS Lambda, Azure Functions, Google CloudFunctions & more
30 lines (24 loc) • 497 B
YAML
service:
name: hello-world
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