Static web UI for CIC UK Air Quality Networks.
uk_aq_hex_map.htmlmain hex map UI.uk_aq_stations_chart.htmlstation-search chart page.data/reference datasets and hex grids.data/WHO-guidelines/reference copy of the WHO GAQG 2021 CSV loaded into Supabase.
The HTML pages can embed the Supabase project ref and publishable key for live Edge Function URLs.
Create a .env file in the repo root or set env vars:
SUPABASE_PROJECT_REF=your_project_ref
SB_PUBLISHABLE_DEFAULT_KEY=your_publishable_key
Then run:
node scripts/uk_aq_inject_project_ref.mjs
Note: AQI_HISTORY_BASE_PLACEHOLDER injection is optional per file. Files that do not include that placeholder (for example uk_aq_hex_map.html) are skipped for that one token and still receive the required Supabase/Turnstile injections.
You can also target specific files:
node scripts/uk_aq_inject_project_ref.mjs uk_aq_hex_map.html
In your GH Pages workflow, set repo secrets SUPABASE_PROJECT_REF and SB_PUBLISHABLE_DEFAULT_KEY, then run:
node scripts/uk_aq_inject_project_ref.mjs
Set your publish directory to web/ when deploying.