docs: correct .env scope note; give exact wrangler local-debug command

This commit is contained in:
hanyixuanten committed 2026-10-25 12:57:55 +00:00
1 parent 36910d9f05
commit 2c1f508b14
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -1,7 +1,8 @@
# 复制为 .env 使用。注意:
# - PUBLIC_TURNSTILE_SITE_KEY 是构建时变量,本地构建需要;
# - GITHUB_* / TURNSTILE_SECRET_KEY 是 Cloudflare Pages Functions 的
# 运行时变量,本地 .env 不会生效,需在 Pages 控制台配置(见 README)。
# - GITHUB_* / TURNSTILE_SECRET_KEY 是 Pages Functions 的运行时变量:
# 线上须在 Pages 控制台配置(本地 .env 不会随部署上传);
# 本地调试 API(npx wrangler pages dev dist)时 wrangler 会自动读取本文件。
# ---- 投稿后端:GitHub App(详见 README「创建 GitHub App」一节) ----
GITHUB_APP_ID=