generated from cheqd/.github
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
116 lines (90 loc) · 3.79 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
###############################################################
### SECTION 1: General Configuration ###
###############################################################
# Worker name
name = "secret-box"
# Entrypoint/path to the file that will be executed
main = "src/index.ts"
# Date in yyyy-mm-dd to determine which version of Workers runtime to use
# Details: https://developers.cloudflare.com/workers/platform/compatibility-dates/
compatibility_date = "2022-05-24"
# Usage model for the Worker
# Details: https://developers.cloudflare.com/workers/platform/limits
usage_model = "bundled"
# Minify before uploading?
minify = false
# Add polyfills for node builtin modules and globals?
node_compat = true
###############################################################
### SECTION 2: Production Environment ###
###############################################################
# Deploy to NAME.SUBDOMAIN.workers.dev?
# @default `true`
workers_dev = true
# Route to publish the Worker
route = { pattern = "secret-box.cheqd.net/*", zone_id = "88e06eefedbbd140a12ac3dd1b21a7af" }
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
kv_namespaces = [
{ binding = "CREDENTIALS", id = "82eb8b0a55244170b817d3f5656bea56" }
]
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
# [vars]
###############################################################
### SECTION 3: Local Development ###
###############################################################
# Configuration options for local development via Wrangler
[dev]
# IP address for the local dev server to listen on
# @default `localhost`
ip = "localhost"
# Port for the local dev server to listen on
# @default `8787`
port = 8787
# Protocol that local wrangler dev server listens to requests on
# @default `http`
local_protocol = "http"
###############################################################
### SECTION 4: Staging Environment ###
###############################################################
[env.staging]
# Worker name - Staging Environment
name = "secret-box-staging"
# Deploy to NAME.SUBDOMAIN.workers.dev?
# @default `true`
workers_dev = true
# Route to publish the Worker
route = { pattern = "secret-box-staging.cheqd.net/*", zone_id = "88e06eefedbbd140a12ac3dd1b21a7af" }
# Map of environment variables to set when deploying the Worker
# Not inherited. @default `{}`
# vars = { ENVIRONMENT = "staging", ... }
# KV Namespaces accessible from the Worker
# Details: https://developers.cloudflare.com/workers/learning/how-kv-works
# @default `[]`
kv_namespaces = [
{ binding = "CREDENTIALS", id = "9abeb647d36148009a0896797775bfbf" }
]
###############################################################
### OPTIONAL: Build Configuration ###
###############################################################
# NOTE: THIS IS A TOP-LEVEL CONFIGURATION AND NEEDS TO BE MOVED IF USED
# Optional custom build step when using Wrangler CLI for build
# Details: https://developers.cloudflare.com/workers/wrangler/custom-builds/
# @default {}
# [build]
# # Custom build command. On Linux and macOS, the command is executed in
# # the `sh` shell and the `cmd` shell for Windows.
# # The `&&` and `||` shell operators may be used.
# command = ""
# # The directory in which the command is executed.
# cwd = "./src"
# # The directory to watch for changes while using `wrangler dev`,
# # defaults to the current working directory
# watch_dir = ""
# List of data files that the Worker should be bound to. This is
# the legacy way of binding to a data file. ES module Workers should
# do proper module imports.
#[data_blobs]
# DATA = ""