Skip to content

Add redirects and restore Build with AI page

Created by: ihsraham

Summary

  • Add repo-root Sevalla _redirects with permanent redirects for the bad Indexer API URL pattern reported in #146 (closed).
  • Keep Eugene’s compact two-rule module alias shape: /sdk/wallet-evm for module landing pages and /sdk/wallet-evm/* -> /sdk/wallet-modules/wallet-evm/:splat for trailing-slash and nested paths.
  • Restore the marketing-friendly Build with AI page at /start-building/build-with-ai, add it back to Start Building navigation, and link it from the homepage Start Building cards.
  • Add npm run check:redirects to npm run quality so duplicate sources, missing redirect targets, expected behavior, and module redirect shape are caught.

Fixes #146 (closed)

Validation

  • npm ci
  • git diff --check
  • npm run check:redirects (29 rules, 6 expected matches)
  • npm run quality (passes; 0 broken links, existing external-link and SEO warnings only)
  • Static export redirect test over dist: 29 redirect rules, 39 module alias probes, 3 Indexer probes, and exact redirect targets followed to 200.
  • Static export Build with AI link sweep: 45 rendered internal hrefs checked, important card/footer/LLM links present, 0 failures.
  • Browser click-through on the static export: homepage card, four AI cards, and generated previous/next footer links all reached the expected pages/H1s.
  • OG image checked for /start-building/build-with-ai: generated 1200x630 WebP at /og/docs/start-building/build-with-ai/image.webp, page meta points to it, and the card text renders without truncation.

Redirect testing note

Local next dev does not process Sevalla _redirects, so final platform behavior should still be canaried on a Sevalla preview or production deploy. The redirect behavior claimed by this PR is locally covered by npm run check:redirects and the static-export redirect emulator against dist.

Merge request reports