Repository navigation
fix: production is always lanyards.app; remove next.lanyards.app (#159) - #160
Merged
Merged
Conversation
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
…ld-attendee-ux-vcl1sb
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sign-in on
lanyards.appis broken in production. The live build was made with a stalePUBLIC_BASE_URLofhttps://next.lanyards.app. Its OAuthclient_idnamesnext.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).PUBLIC_BASE_URLsays: OAuth client metadata, app config.runtimeBaseUrl): canonical and image URLs.PUBLIC_BASE_URL(e2e), or default tolanyards.app.next.lanyards.appis out of the chain:vercel.jsonredirects are gone;src/lib/origin/);Testing
npm run lint,npm run typecheck(includesapi/andserver/),npm run i18n:checknpm test: 1,301 passed, including regression tests where production ignores a stalePUBLIC_BASE_URLat build and at runtimeVERCEL_ENV=production PUBLIC_BASE_URL=https://next.lanyards.app npm run build) emitsclient_id https://lanyards.app/oauth-client-metadata.jsonand redirecthttps://lanyards.app/oauth/callbacknpm run e2e: 92 passednpm run size: 198.7 KB of 200 KBAfter merge (optional tidy-up)
PUBLIC_BASE_URLfrom thelanyardsproject, since production ignores it now. Setwww.lanyards.appto 308 (it currently returns 307).nextCNAME.Closes #159
Generated by Claude Code