Skip to content

fix: production is always lanyards.app; remove next.lanyards.app (#159) - #160

Merged
renderghost merged 2 commits into
mainfrom
claude/lanyards-rebuild-attendee-ux-vcl1sb
Nov 21, 2026
Merged

renderghost merged 2 commits into
mainfrom
claude/lanyards-rebuild-attendee-ux-vcl1sb

Conversation

@renderghost

Copy link
Copy Markdown
Owner

Summary

Sign-in on lanyards.app is broken in production. The live build was made with a stale PUBLIC_BASE_URL of https://next.lanyards.app. Its OAuth client_id names next.lanyards.app, which no longer resolves (404), so authorisation servers can't fetch the client metadata. Merging this rebuilds production and fixes it, with no Vercel settings to change.

  • PRODUCTION_BASE_URL = 'https://lanyards.app', fixed in code (src/lib/atproto/oauthConfig.ts).
    • Vercel production builds always use it, whatever PUBLIC_BASE_URL says: OAuth client metadata, app config.
    • So does the link-preview function at runtime (runtimeBaseUrl): canonical and image URLs.
  • Other builds:
    • Previews keep their branch URL, and a preview with no branch URL now fails loudly rather than guessing.
    • Other builds use PUBLIC_BASE_URL (e2e), or default to lanyards.app.
  • next.lanyards.app is out of the chain:
    • its two vercel.json redirects are gone;
    • the app's retired-origin hand-off is gone (src/lib/origin/);
    • so is every reference in the README, CLAUDE.md and test fixtures.

Testing

  • npm run lint, npm run typecheck (includes api/ and server/), npm run i18n:check
  • npm test: 1,301 passed, including regression tests where production ignores a stale PUBLIC_BASE_URL at build and at runtime
  • A Vercel-production-like build with the stale variable (VERCEL_ENV=production PUBLIC_BASE_URL=https://next.lanyards.app npm run build) emits client_id https://lanyards.app/oauth-client-metadata.json and redirect https://lanyards.app/oauth/callback
  • npm run e2e: 92 passed
  • npm run size: 198.7 KB of 200 KB

After merge (optional tidy-up)

  • Vercel: delete the stale PUBLIC_BASE_URL from the lanyards project, since production ignores it now. Set www.lanyards.app to 308 (it currently returns 307).
  • Cloudflare: delete the next CNAME.

Closes #159


Generated by Claude Code

renderghost and others added 2 commits November 21, 2026 00:34
Production was built with a stale PUBLIC_BASE_URL of the retired beta
address, so its OAuth client_id named next.lanyards.app, which no longer
resolves: sign-in failed.

- PRODUCTION_BASE_URL: Vercel production builds, and the link-preview
  function at runtime, always use https://lanyards.app, whatever the
  variable says. Previews keep their branch URL; other builds use
  PUBLIC_BASE_URL or default to lanyards.app. A preview with no branch
  URL now fails loudly.
- next.lanyards.app is out of the chain: its vercel.json redirects and
  the app's retired-origin hand-off are gone, along with every reference
  in docs and test fixtures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PSPB1cH898qV61BH1NiFKL
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
lanyards Ready Ready Preview Nov 21, 2026 12:34am UTC

@renderghost
renderghost merged commit a98cfb6 into main Nov 21, 2026
3 checks passed
@renderghost
renderghost deleted the claude/lanyards-rebuild-attendee-ux-vcl1sb branch November 21, 2026 00:37
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.

Bug: sign-in on lanyards.app still points at next.lanyards.app; remove next. entirely

1 participant