-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
33 lines (27 loc) · 870 Bytes
/
wrangler.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name = "ptrk-fm-worker"
type = "javascript"
### Workers -> AccountID
account_id = ""
workers_dev = true
compatibility_date = "2022-03-11"
# this should be created manually in cloudflare..
# workers -> worker -> settings -> KV namespace bindings
kv_namespaces = [
{ binding = "ARTICLES", id = "" }
]
# This should be created manually in cloudflare..
# R2 -> Create bucket
[[r2_buckets]]
binding = 'BUCKET'
bucket_name = 'ptrk'
# After deployment you should create a Service Bindings manually in cloudflare to enable image resizing
# Workers -> *your_worker* -> settings -> service bindings -> add variable -> set name "RESIZER", choose service, choose environment.
[build]
command = "yarn install --freeze-lockfile && yarn build"
[build.upload]
format = "modules"
dir = "./dist"
main = "./index.js"
[[build.upload.rules]]
type = "ESModule"
globs = ["**/*.js"]