Skip to content

Conversation

@mlwmlw
Copy link
Owner

@mlwmlw mlwmlw commented Jan 19, 2026

Motivation

  • Centralize SEO metadata (title, description, canonical, Open Graph and Twitter cards) so pages share consistent defaults and avoid duplicated blocks.
  • Ensure OG/Twitter images are absolute URLs and allow per-page overrides (image, url, type) for better link previews.
  • Improve crawlability by adding a sitemap reference to robots.txt.
  • Resolve build dependency issues by installing dependencies compatible with the current React/Next setup and updating the lockfile.

Description

  • Add components/SeoHead.js which provides defaults for title, description, canonical url, Open Graph and Twitter metadata and supports noIndex and children for extra tags.
  • Replace ad-hoc <Head> blocks with SeoHead usage in pages/_app.js, pages/index.js, pages/merchants.js, and pages/merchants/[merchant_id].js, passing page-specific title, description, image, url, and type, and preserving og:image:width/og:image:height by supplying them as children where needed.
  • Update web/index.js robots.txt handler to include Sitemap: https://pcc.mlwmlw.org/sitemap.xml.
  • Install project dependencies using npm install --legacy-peer-deps, which updated package-lock.json to reflect the resolved dependency graph.

Testing

  • Run npm install --legacy-peer-deps to install dependencies and regenerate package-lock.json, which completed (with standard audit warnings).
  • Run npm run build (Next.js production build) which completed successfully and produced optimized pages and route sizes.
  • The build step served as the primary automated verification and passed without webpack errors.

Codex Task

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants