Skip to content

Commit 27f2cf4

Browse files
committed
Document GITHUB_TOKEN for forum build in .env.example
1 parent 1f27711 commit 27f2cf4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,18 @@ PUBLIC_GA_MEASUREMENT_ID=
77
# Giscus (GitHub Discussions comments). Get IDs from https://giscus.app
88
# Repo: MLSysDev/mlsystems.dev, Category: Comments, Mapping: pathname.
99
# Leaving these blank shows the "comments not configured" fallback.
10+
# The forum reuses PUBLIC_GISCUS_REPO_ID for inline per-thread commenting.
1011
PUBLIC_GISCUS_REPO_ID=
1112
PUBLIC_GISCUS_CATEGORY_ID=
1213

14+
# Forum: read-only token used AT BUILD to pull GitHub Discussions into the forum.
15+
# Not PUBLIC_ — server/build only, never shipped to the client. A fine-grained or
16+
# classic PAT with read-only access to this repo's Discussions is enough (public
17+
# repo needs no scopes / `public_repo`). Leave blank to render an empty forum.
18+
# Set the same value in the Cloudflare Pages build env (and Functions env).
19+
# Locally you can reuse the gh CLI token: GITHUB_TOKEN=$(gh auth token) npm run build
20+
GITHUB_TOKEN=
21+
1322
# Show the "Designed share card" opt-in under a cover in /write. Only "true"
1423
# enables it; anything else (or unset) is treated as off. Opted-in posts render
1524
# a per-post OG card at build, so leave off unless you want that cost.

0 commit comments

Comments
 (0)