Skip to content

Skip loading giscus on non-production origins#175

Merged
alamb merged 2 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/giscus-warn-on-localhost
May 10, 2026
Merged

Skip loading giscus on non-production origins#175
alamb merged 2 commits into
apache:mainfrom
kevinjqliu:kevinjqliu/giscus-warn-on-localhost

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

What

Add an origin guard in giscus-consent.js to skip loading giscus when location.origin is not https://datafusion.apache.org, showing an informational notice instead.

Screenshot 2026-05-10 at 9 12 24 AM

Why

Without this guard, running the site locally (e.g. make serve) causes giscus to create spurious GitHub Discussions with http://0.0.0.0:8000/... backlinks (e.g. #94).

@alamb alamb merged commit cfcf6f9 into apache:main May 10, 2026
4 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/giscus-warn-on-localhost branch May 10, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants