-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
57 lines (50 loc) · 1.71 KB
/
wrangler.toml
File metadata and controls
57 lines (50 loc) · 1.71 KB
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
name = "form-relay"
main = "src/worker.ts"
compatibility_date = "2025-01-09"
preview_urls = true
# Custom domain will be configured in Cloudflare Dashboard
# Go to Workers & Pages → form-relay → Settings → Custom Domains
#
# Cloudflare observability is always enabled for this Worker.
# DEBUG is a separate plaintext variable that only gates runtime `console.*` logs.
# You can change it in either place:
# - here in `[vars]`, followed by `wrangler deploy`
# - in the Cloudflare dashboard under Settings → Variables, then deploy the Worker
#
# Deploy commands:
# - Deploy current config: `wrangler deploy`
# - Deploy a named environment later: `wrangler deploy --env <environment-name>`
# Environment variables
# Required secrets (set via `wrangler secret put`):
# - MAILGUN_API_KEY
# - MAILGUN_DOMAIN (e.g., "mail.tanuj.xyz")
# - DISCORD_ERROR_WEBHOOK
#
# Optional, non-secret vars (set via `wrangler.toml` [vars] or dashboard env vars):
# - DEV_MODE (e.g., "true" to force all submissions to use defaultNotifyTo)
# - DEBUG (e.g., "true" to enable runtime debug logging)
#
# Form configurations are in repository files:
# - config/forms.json (form-specific settings)
# - config/defaults.json (default fallback settings)
[vars]
# Uncomment to enable dev mode in non-production environments
DEV_MODE = "false"
DEBUG = "false"
# Optional: bindings (currently commented out)
# [[kv_namespaces]]
# binding = "RATE_KV"
# id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# [[d1_databases]]
# binding = "FORMS_D1"
# database_name = "forms"
# database_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
[observability]
enabled = true
[observability.logs]
enabled = true
invocation_logs = true
[observability.traces]
enabled = false
[assets]
directory = "./public"