Add redirects and restore Build with AI page
Created by: ihsraham
Summary
- Add repo-root Sevalla
_redirectswith permanent redirects for the bad Indexer API URL pattern reported in #146 (closed). - Keep Eugene’s compact two-rule module alias shape:
/sdk/wallet-evmfor module landing pages and/sdk/wallet-evm/*->/sdk/wallet-modules/wallet-evm/:splatfor trailing-slash and nested paths. - Restore the marketing-friendly
Build with AIpage 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:redirectstonpm run qualityso duplicate sources, missing redirect targets, expected behavior, and module redirect shape are caught.
Fixes #146 (closed)
Validation
npm cigit 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 AIlink 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: generated1200x630WebP 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.