setup-guides

openenergy.* — Citizen Science domain

Make openenergy.* the home for the Citizen Science / Open Energy platform (the surfaces currently at hivejournal.com/dreampro), freeing dreampro.io to be the coaching front door (DREAMPRO_IO_DOMAIN.md). Same recipe as the other brand domains (MULTI_BRAND_DOMAINS.md).

The code is shipped: the host-aware middleware (middleware.ts) rewrites openenergy.*//dreampro (the CS platform home); /dreampro/* and /open-energy/* pass through on the host. Activate via DNS + Vercel below.

1. Pick the TLD + DNS

Decide the registered domain (e.g. openenergy.org). The middleware match is TLD-agnostic (host.startsWith('openenergy.')), so any TLD works.

openenergy.<tld>       CNAME → cname.vercel-dns.com   (or A/ALIAS for the apex)
www.openenergy.<tld>   CNAME → cname.vercel-dns.com

2. Vercel

Add openenergy.<tld> + www.openenergy.<tld> to the frontend project (Project Settings → Domains). TLS is automatic.

3. Supabase Auth (if CS users sign up on the host)

Add the openenergy callback/redirect URLs to Supabase → Auth → URL Configuration → Redirect URLs, mirroring the other brand domains.

4. Verify

  • https://openenergy.<tld>/ → the Citizen Science platform (URL bar stays on openenergy).
  • https://openenergy.<tld>/dreampro/map (and other CS pages) resolve on the host.

What's intentionally NOT here yet (later cleanup)

  • CS still also resolves at hivejournal.com/dreampro during the transition.
  • No 301s yet from the old paths, and the CS surfaces haven't been carved off the /dreampro path/route names. Doing that (301 redirects, renaming routes to an /openenergy prefix, updating internal links + docs/INDEX) is the heavier follow-on — see DREAMPRO_COACHING_SYSTEM.md §6.
  • A dedicated Open Energy brand chrome (vs. the default nav) is a polish item.
OPENENERGY DOMAIN — Docs | HiveJournal