Skip to content

Move the apex kaffeelisten.de to GitHub Pages #5

Closed

Description

@arudaev

The landing page wants the apex; the app keeps its subdomains.

Done when

  • PUBLIC_BASE_URL set on every app deployment
  • The apex removed from Vercel, DNS pointed at Pages, the domain verified for the organisation
  • Custom domain set in the repository settings with HTTPS enforced
  • canonical, og:url and og:image on the page point at kaffeelisten.de

Activity

  1. added this to the P2 · The public face milestone on Nov 6, 2026
  2. added
    type:taskWork with a clear finish line that is not a feature
    needs-decisionWaiting on a founder decision
    area:deliveryCI, workflows, deployment and repository settings
    on Nov 6, 2026
  3. arudaev commented on Nov 6, 2026

    @arudaev
    MemberAuthor

    Where this stands on 6 November

    Alexander: "kaffeelisten.de is down. It's not working right now, and a hard reload doesn't help. That one is still the ITC1 version."

    Both halves are explained by the same thing. The apex is attached to the Vercel project kaffeelisten, which deploys the app from main — not the landing page — and that app has no database: the production Supabase project is paused under the free plan's two-active-projects limit. So the apex serves a campus-branded instance that cannot load a company list. It is not a caching problem and a reload will not fix it.

    Meanwhile the landing page is only at kaffeelisten.github.io, and the demo now lives at demo.kaffeelisten.de (its own Vercel project since this morning).

    What the move needs

    DNS is external — Hetzner, ns1.your-server.de — so Vercel and GitHub can both only ask. The apex currently has A @ 216.198.79.1 pointing at Vercel.

    Only Alexander can do these:

    1. Replace the apex A record with the four GitHub Pages addresses:
      @  A  185.199.108.153
      @  A  185.199.109.153
      @  A  185.199.110.153
      @  A  185.199.111.153
      
    2. Repoint www from cname.vercel-dns.com. to kaffeelisten.github.io.
    3. Add the organisation's domain-verification TXT record, which GitHub issues under Settings → Pages → Verified domains. Without it the apex cannot be claimed by this org while another account could also claim it.

    An agent can do the rest: remove the apex from the Vercel project, add the CNAME file here, set the custom domain and enforce HTTPS, and update canonical / og:url / og:image.

    Order matters

    Point DNS at Pages before removing the domain from Vercel and the apex is briefly served by neither; remove it from Vercel first and it is briefly served by a 404. Either way the window is one TTL — currently 7200s, so lower the TTL to 300 a day ahead and the switch costs five minutes instead of two hours.

    Does not block the demo or the landing page; both are reachable at their own hostnames today.

  4. arudaev commented on Nov 6, 2026

    @arudaev
    MemberAuthor

    The repository side is prepared and waiting in #14 — CNAME, the four absolute URLs, and the full order of operations. It is deliberately not merged: a CNAME file makes GitHub redirect kaffeelisten.github.io to the custom domain, so merging it before DNS moves would take the working landing page offline rather than relocating it.

    So the sequence is DNS first, merge second, Vercel third — the opposite of what feels natural, and the reason is in the PR.

    Checklist status:

    • PUBLIC_BASE_URL set on every app deployment — the demo has it; the campus app has no hostname to point at until itc1.kaffeelisten.de exists, so this one waits
    • The apex removed from Vercel, DNS pointed at Pages, the domain verified for the organisation — needs Alexander, steps 1–3 in chore(domain): the apex, ready to switch on #14
    • canonical, og:url and og:image on the page point at kaffeelisten.de — in chore(domain): the apex, ready to switch on #14
    • Custom domain set in the repository settings with HTTPS enforced — follows automatically from the CNAME file, then one toggle
  5. arudaev commented on Nov 6, 2026

    @arudaev
    MemberAuthor

    Done, 6 November

    kaffeelisten.de serves the landing page.

    http://kaffeelisten.de 301 → https://kaffeelisten.de/
    https://kaffeelisten.de 200, the landing page
    https://www.kaffeelisten.de 301 → apex
    https://kaffeelisten.github.io 301 → apex
    https://kaffeelisten.de/impressum.html 200 — it was a 404 before #16
    https://demo.kaffeelisten.de 200, untouched

    Records at Hetzner: four A (185.199.108–111.153) and four AAAA (2606:50c0:8000–8003::153), TTL 300. Domain detached from the Vercel project.

    The one thing that did not work as documented: on a workflow-published site a CNAME file in the artifact does not register the custom domain. The file was served at /CNAME with the right contents and the Pages API still reported cname: null and the apex still 404'd. The domain had to be set explicitly:

    gh api -X PUT repos/kaffeelisten/kaffeelisten.github.io/pages -f cname='kaffeelisten.de'
    

    The file is still worth keeping — it is what the setting is mirrored from if the source ever switches to branch deployment — but it is not sufficient on its own. Worth remembering for itc1.kaffeelisten.de.

    Plain HTTP answered 404 for about a minute after HTTPS was enforced, then settled into the 301. Edge propagation, not a misconfiguration — do not go hunting for a cause if you see it next time.

    Remaining checklist item, PUBLIC_BASE_URL on the campus deployment, is not actionable: the app has no hostname until itc1.kaffeelisten.de exists, and no database while production is paused (kaffeelisten/playbook#9).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:deliveryCI, workflows, deployment and repository settingsneeds-decisionWaiting on a founder decisiontype:taskWork with a clear finish line that is not a feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions