Skip to content

Commit 33db980

Browse files
committed
simplify: restore basic wrangler.toml configuration
Remove complex environment configurations that were causing issues Keep only essential settings: name, compatibility, and D1 binding This should restore the working state from before
1 parent 70bceea commit 33db980

File tree

1 file changed

+1
-43
lines changed

1 file changed

+1
-43
lines changed

wrangler.toml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,7 @@ name = "katelyatv"
22
compatibility_date = "2024-09-01"
33
compatibility_flags = ["nodejs_compat"]
44

5-
# Pages 配置
6-
pages_build_output_dir = ".vercel/output/static"
7-
8-
[env.production]
9-
name = "katelyatv"
10-
compatibility_flags = ["nodejs_compat"]
11-
12-
[env.production.vars]
13-
# 存储类型配置
14-
NEXT_PUBLIC_STORAGE_TYPE = "d1"
15-
16-
# 站点配置
17-
NEXT_PUBLIC_SITE_NAME = "KatelyaTV"
18-
NEXT_PUBLIC_SITE_DESCRIPTION = "高性能影视播放平台"
19-
20-
# NextAuth 配置
21-
NEXTAUTH_URL = "https://your-domain.pages.dev"
22-
23-
# 图片代理配置
24-
IMAGE_PROXY_ENABLED = "true"
25-
26-
# 缓存配置
27-
CACHE_TTL = "3600"
28-
29-
# CORS 配置
30-
CORS_ORIGIN = "*"
31-
32-
# Rate Limiting 配置
33-
RATE_LIMIT_MAX = "100"
34-
RATE_LIMIT_WINDOW = "60000"
35-
36-
# 健康检查配置
37-
HEALTH_CHECK_ENABLED = "true"
38-
HEALTH_CHECK_INTERVAL = "30"
39-
40-
# 日志配置
41-
LOG_LEVEL = "info"
42-
LOG_FORMAT = "json"
43-
44-
# 生产环境标识
45-
NODE_ENV = "production"
46-
47-
[[env.production.d1_databases]]
5+
[[d1_databases]]
486
binding = "DB"
497
database_name = "katelyatv-db"
508
database_id = "c312fe33-7600-4226-b948-6aed7e76f0ad"

0 commit comments

Comments
 (0)