-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwrangler.toml
More file actions
82 lines (66 loc) · 1.94 KB
/
wrangler.toml
File metadata and controls
82 lines (66 loc) · 1.94 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name = 'stats'
main = "src/worker.ts"
compatibility_date = "2024-12-16"
compatibility_flags = ["nodejs_compat"]
# Build configuration
[build]
command = "npm run build"
cwd = "."
# Environment variables (default/production)
[vars]
ENVIRONMENT = "cloudflare"
PORT = "3000"
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
# D1 Database Binding - SQLite for Cloudflare
[[d1_databases]]
binding = "DB"
database_name = "stats"
database_id = "a2b03b75-e470-480a-acd4-89bad0b42794"
# KV Namespace Bindings - for caching
[[kv_namespaces]]
binding = "bind_stats"
id = "31440109a66e43afb1edb018a6dd7637"
[[kv_namespaces]]
binding = "bind_stats_cache"
id = "e1c34e6f806c419e885f45607e3b0a84"
preview_id = "e1c34e6f806c419e885f45607e3b0a84"
# Development environment
[env.development]
name = "stats-dev"
main = "src/worker.ts"
compatibility_date = "2024-12-16"
[env.development.vars]
ENVIRONMENT = "cloudflare-dev"
DEBUG = "true"
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
[[env.development.d1_databases]]
binding = "DB"
database_name = "stats"
database_id = "a2b03b75-e470-480a-acd4-89bad0b42794"
[[env.development.kv_namespaces]]
binding = "bind_stats"
id = "31440109a66e43afb1edb018a6dd7637"
preview_id = "31440109a66e43afb1edb018a6dd7637"
[[env.development.kv_namespaces]]
binding = "bind_stats_cache"
id = "e1c34e6f806c419e885f45607e3b0a84"
preview_id = "e1c34e6f806c419e885f45607e3b0a84"
# Production environment
[env.production]
name = "stats"
main = "src/worker.ts"
compatibility_date = "2024-12-16"
[env.production.vars]
ENVIRONMENT = "cloudflare-production"
DEBUG = "false"
UPSTREAM_ORIGIN = "https://stats.pphatdev.workers.dev"
[[env.production.d1_databases]]
binding = "DB"
database_name = "stats"
database_id = "a2b03b75-e470-480a-acd4-89bad0b42794"
[[env.production.kv_namespaces]]
binding = "bind_stats"
id = "31440109a66e43afb1edb018a6dd7637"
[[env.production.kv_namespaces]]
binding = "bind_stats_cache"
id = "e1c34e6f806c419e885f45607e3b0a84"