-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
37 lines (32 loc) · 1.27 KB
/
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
34
35
36
37
name = "cf-notion-cache"
main = "src/index.js"
compatibility_date = "2023-12-01"
# compatibility_flags = ["nodejs_compat"]
# node_compat = true
node_compat = false
# this field specifies that the worker
# should be deployed to *.workers.dev
workers_dev = true
# Seems to need to be above the [vars] section
kv_namespaces = [
{ binding = "NOTION_CACHE", preview_id = "a6623ba843e04bf2af34f94025f0a0ec", id = "a4e9d9cbdbdc44d2b8f914e1c9c6e6bc" },
]
# Equivalent of .env vars
# Note: Fill in .dev.vars with the following for development (but don't commit to Git),
# and also remember to add the secret(s) to Cloudflare settings.
# BUT, don't uncomment the secret(s) below, otherwise those settings will be overwritten when running `wrangler deploy`
# See: https://github.com/cloudflare/wrangler2/issues/276#issuecomment-1228631694
[vars]
NOTION_SITE_BASE_URL = "https://shopifyapps.notion.site"
CLOUDINARY_CLOUD_NAME = "dxsljti9a"
CLOUDINARY_API_KEY = "634166366171861"
# CLOUDINARY_API_SECRET = "{Add as a secret - don't uncomment}"
# [env.dev]
# kv_namespaces = [
# { binding = "NOTION_CACHE", id = "6baaf919a94c4296aa5f890c638498a1" },
# ]
# [env.production]
# name = "cf-notion-cache"
# kv_namespaces = [
# { binding = "NOTION_CACHE", id = "a4e9d9cbdbdc44d2b8f914e1c9c6e6bc" },
# ]