15 lines
656 B
TOML
15 lines
656 B
TOML
# Git 集成时的两种常见配置:
|
||
#
|
||
# 1) 仅静态 Pages:Build = npm run build,Output = dist,「Deploy command」留空
|
||
# (由 Cloudflare 直接发布 dist,勿再执行 wrangler deploy)
|
||
#
|
||
# 2) Workers + Vite 管道:控制台会执行 npx wrangler deploy,要求 package.json 中 Vite ≥ 6
|
||
#
|
||
# 下面 name 建议与 Cloudflare 控制台里的 Worker / Pages 项目名一致(你当前日志为 hgtk-landing)
|
||
name = "hgtk-landing"
|
||
compatibility_date = "2025-05-01"
|
||
pages_build_output_dir = "dist"
|
||
|
||
# 若 wrangler 提示需要账户 ID,可取消下行注释并填入(或与 CLOUDFLARE_ACCOUNT_ID 二选一)
|
||
# account_id = ""
|