2026-05-22 16:46:13 +08:00
|
|
|
|
# Cloudflare(Git 集成 + 必填 Deploy command)
|
|
|
|
|
|
# =====================================================================
|
|
|
|
|
|
# 供控制台「Deploy command」使用(任选其一,与下面 wrangler.toml 配套):
|
|
|
|
|
|
# npx wrangler deploy
|
|
|
|
|
|
# npm run deploy:cf
|
|
|
|
|
|
# 若更偏向经典 Pages CLI,可使用: npm run deploy:cf-git
|
|
|
|
|
|
# Build command 仍为 npm run build;输出目录 dist 会先由构建生成,再由 deploy 上传。
|
2026-05-18 13:21:13 +08:00
|
|
|
|
#
|
|
|
|
|
|
name = "hgtk-landing"
|
|
|
|
|
|
compatibility_date = "2025-05-01"
|
|
|
|
|
|
|
2026-05-22 16:46:13 +08:00
|
|
|
|
[assets]
|
|
|
|
|
|
directory = "./dist"
|
|
|
|
|
|
# 客户端路由刷新时回退到 index.html(与 public/_redirects 作用一致)
|
|
|
|
|
|
not_found_handling = "single-page-application"
|
|
|
|
|
|
|
2026-05-18 13:21:13 +08:00
|
|
|
|
# account_id = ""
|