Skip to content

Commit 76bc823

Browse files
webmaxruCopilot
andcommitted
docs: note the one-line workflow env forwarding for analytics
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 7c016ad commit 76bc823

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,14 @@ consent banner** — and stays inside Azure's **free tier** (workspace-based, 30
236236
carries an **empty** string (a safe no-op).
237237
- In CI (`.github/workflows/deploy-pages.yml`) the value comes from the repository **Actions
238238
variable** `APPINSIGHTS_CONNECTION_STRING` (Settings → Secrets and variables → Actions →
239-
Variables — *not* a secret), and is injected only into the `gh-pages` build.
239+
Variables — *not* a secret), forwarded into the site-generation step and injected only into the
240+
`gh-pages` build. The one line the deploy job needs on its **Regenerate site from content** step:
241+
```yaml
242+
env:
243+
APPINSIGHTS_CONNECTION_STRING: ${{ vars.APPINSIGHTS_CONNECTION_STRING }}
244+
```
245+
Until that env line is present, the published HTML carries an empty string and analytics stays a
246+
safe no-op.
240247
241248
**Kill switch (one line).** Flip the constant at the top of `analytics/analytics.entry.js` and
242249
rebuild:

0 commit comments

Comments
 (0)