Skip to content

Point the deploy claims and metadataBase at GitHub Pages - #10

Closed
baptisterajaut wants to merge 1 commit into
mainfrom
fix/deploy-target-claims
Closed

baptisterajaut wants to merge 1 commit into
mainfrom
fix/deploy-target-claims

Conversation

@baptisterajaut

Copy link
Copy Markdown
Collaborator

Three stale references to Netlify, left over from the switch to GitHub Pages in 682eb6a.

https://rebench.netlify.app/ now returns 404, and https://nilabh-code.github.io/ReBench/ returns 200. basePath: "/ReBench" in next.config.ts means the Netlify build serves its assets under a prefix its own root does not have, so that deploy is dead rather than merely redundant. The Netlify checks still run on pull requests, which is why the preview looks healthy while the site is not.

app/layout.tsx still declared metadataBase: new URL("https://rebench.netlify.app"), so every canonical and Open Graph URL Next resolves would point at that 404. It is now the Pages origin, basePath included, which is where the site actually lives. My mistake in #1: I set it to Netlify because that was the live host at the time, and it went stale the moment the deploy target moved.

The README said npm run build produces a "production build (Next.js; deployed on Netlify)". With output: "export" it is now a static export to out/, which is what the Pages workflow uploads, so that line describes the build wrongly as well as the host. Same for the contribution flow further down, where Netlify was named as the thing that rebuilds the leaderboard after merge.

Verified: validate, 20/20 tests, typecheck, lint, and a build that exports 9 static pages to out/.

🤖 Generated with Claude Code

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.

2 participants