Commit Graph
2 Commits
Author SHA1 Message Date
Dylan Couzon 59420ea8e8 Suppress OneTrust cookie banner on local hugo server (#2331)
* Suppress OneTrust cookie banner on hugo server

Gate the OneTrust loader on hugo.IsProduction so the consent banner
no longer renders during local development. Netlify production and
deploy-preview builds set HUGO_ENV=production (or default to it),
so the banner still loads in every deployed context.

Mirrors the gating pattern already used by the Segment loader
immediately below.

* Gate OneTrust on hugo.IsServer instead of hugo.IsProduction

The previous gate used hugo.IsProduction, which is also false on Netlify
deploy previews (HUGO_ENV=staging) and would suppress the banner there.
Switch to (not hugo.IsServer) so the banner is suppressed only during
local hugo server runs and renders on every hugo build target —
production, deploy-preview, and branch builds alike.
2026-05-07 17:41:05 +02:00
Dylan Couzon 6f6b537a09 Merge pull request #2285 from qdrant/gitignore-update
chore: ignore local tooling artifacts and lockfile
2026-04-21 10:52:48 -04:00