Skip to content

Make playground crawlable - #5

Merged
babu-ch merged 1 commit into
mainfrom
feat/playground-seo
Nov 5, 2026
Merged

babu-ch merged 1 commit into
mainfrom
feat/playground-seo

Conversation

@babu-ch

@babu-ch babu-ch commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

  • Emit one static HTML file per route with title, description, canonical and Open Graph tags, plus fallback content shown until Vue mounts
  • Generate sitemap.xml
  • Fix deep links such as /link-interceptor/internal, which currently return 404 on GitHub Pages
  • Prefix plain links with /link-interceptor/; href="/prevent" currently resolves outside the site when opened in a new tab or followed by a crawler
  • Default <html lang> to en (it was ja) and keep it in sync with the selected locale
  • Update document.title on route change

robots.txt is not included: crawlers only read it from the host root (babu-ch.github.io/robots.txt), so a project site cannot provide one. Submit sitemap.xml through Search Console instead.

Only the playground changes. Published packages are unaffected.

Test plan

  • pnpm lint / pnpm test / pnpm build
  • All three playgrounds build
  • Headless Chrome against a local server that mimics GitHub Pages (no SPA fallback): /, /internal and /security return 200 and mount, fallback content is replaced, and clicking a plain nav link routes in the SPA and updates the title
  • After deploy: confirm /link-interceptor/internal returns 200 on GitHub Pages

🤖 Generated with Claude Code

- Emit one static HTML file per route with title, description, canonical and
  Open Graph tags, plus fallback content shown until Vue mounts
- Generate sitemap.xml
- Fix deep links returning 404 on GitHub Pages
- Prefix plain links with the Pages base so they stay inside the site
- Default <html lang> to en and keep it in sync with the selected locale
- Update document.title on route change

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@babu-ch
babu-ch merged commit 7d1f676 into main Nov 5, 2026
1 check passed
@babu-ch
babu-ch deleted the feat/playground-seo branch November 5, 2026 08:43
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.

1 participant