Skip to content

Commit 38c2345

Browse files
author
ruibin3
committed
fix: update Cloudflare Pages deployment config - remove wrangler deploy command
1 parent 309b115 commit 38c2345

File tree

2 files changed

+6
-30
lines changed

2 files changed

+6
-30
lines changed

wrangler.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"name": "inbox-note-hub",
3+
"type": "javascript",
4+
"compatibility_date": "2024-01-01",
5+
"pages_build_caching_enabled": true
6+
}

wrangler.toml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,3 @@
11
name = "inbox-note-hub"
22
type = "javascript"
3-
account_id = ""
4-
workers_dev = true
5-
route = ""
6-
zone_id = ""
73
compatibility_date = "2024-01-01"
8-
9-
# 配置 Pages 特定选项
10-
[env.production]
11-
name = "inbox-note-hub-prod"
12-
routes = [
13-
{ pattern = "card.gudong.site", zone_name = "gudong.site" }
14-
]
15-
16-
# 静态资源缓存策略
17-
[build]
18-
command = "npm run build"
19-
cwd = "./"
20-
watch_paths = ["src/**/*.ts", "src/**/*.tsx", "cards/**/*"]
21-
22-
[env.production.build]
23-
command = "npm run build"
24-
cwd = "./"
25-
26-
# 构建输出配置
27-
[build.upload]
28-
format = "service-worker"
29-
30-
[build.upload.rules]
31-
type = "CompiledContentType"
32-
globs = ["**/*.wasm"]
33-
fallthrough = true

0 commit comments

Comments
 (0)