-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwrangler.toml
More file actions
43 lines (35 loc) · 990 Bytes
/
Copy pathwrangler.toml
File metadata and controls
43 lines (35 loc) · 990 Bytes
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
name = "markdown-nice"
main = "worker/index.ts"
compatibility_date = "2026-05-13"
workers_dev = true
# TODO: set your Cloudflare account id
account_id = "f6a80eb748def94c3e800c9a6456e16b"
[[routes]]
pattern = "mdnice.disign.me/*"
zone_name = "disign.me"
[assets]
directory = "./docs"
binding = "ASSETS"
# ✅ D1 绑定(新增)
[[d1_databases]]
binding = "DB" # 代码里用 env.DB
database_name = "plainly" # 你的 D1 数据库名
database_id = "9ea724c5-d3a5-472c-a375-aa628690ae30" # 你的 D1 数据库 ID
[vars]
# API 前缀与令牌配置(生产环境建议使用 wrangler secret 设置 JWT_SECRET)
API_PREFIX = "/api"
JWT_SECRET = "PTgWnXzydiFck7satLHK"
ACCESS_TOKEN_TTL_MS = "600000"
REFRESH_TOKEN_TTL_MS = "1209600000"
[observability]
enabled = false
head_sampling_rate = 1
[observability.logs]
enabled = true
head_sampling_rate = 1
persist = true
invocation_logs = true
[observability.traces]
enabled = false
persist = true
head_sampling_rate = 1