File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
242249rebuild :
You can’t perform that action at this time.
0 commit comments