Skip to content

feat: comprehensive SEO optimization for @deessejs/errors website#24

Merged
codewizdave merged 3 commits into
mainfrom
feat/web-seo-optimization
Jun 5, 2026
Merged

feat: comprehensive SEO optimization for @deessejs/errors website#24
codewizdave merged 3 commits into
mainfrom
feat/web-seo-optimization

Conversation

@martyy-code

@martyy-code martyy-code commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • robots.txt & sitemap.xml: Automatic generation using Next.js App Router conventions (includes image sitemap)
  • JSON-LD structured data: WebSite, Organization, SoftwareApplication, BreadcrumbList, TechArticle, and APIReference schemas for rich search results
  • Open Graph & Twitter Cards: Full metadata for social sharing across all platforms (Facebook, LinkedIn, Twitter, Slack, Discord)
  • Dynamic OG images: Branded social sharing images using the project's banner for homepage and all documentation pages
  • Security: XSS protection on all JSON-LD output using Unicode escaping
  • Canonical URLs: Proper canonical URLs on all doc pages for SEO consolidation

Changes

File Change
apps/web/src/app/robots.ts Generates /robots.txt with sitemap directive
apps/web/src/app/sitemap.ts Generates /sitemap.xml with image sitemap
apps/web/src/app/opengraph-image.tsx New - Homepage OG image with branded banner
apps/web/src/app/twitter-image.tsx New - Twitter card image with branded banner
apps/web/src/app/layout.tsx metadataBase, title template, sitemap link, WebSite + Organization JSON-LD
apps/web/src/app/(home)/layout.tsx OG + Twitter metadata
apps/web/src/app/(home)/page.tsx SoftwareApplication JSON-LD
apps/web/src/app/docs/[[...slug]]/page.tsx BreadcrumbList, TechArticle, APIReference JSON-LD, canonical URLs
apps/web/src/app/og/docs/[...slug]/route.tsx Enhanced with branded banner
apps/web/src/lib/shared.ts baseUrl constant

Test plan

  • Verify robots.txt at /robots.txt
  • Verify sitemap.xml at /sitemap.xml
  • Test OG images with Facebook Sharing Debugger
  • Test Twitter cards with Twitter Card Validator
  • Verify structured data with Google Rich Results Test
  • Verify canonical URLs on doc pages

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jun 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
errors-web Ready Ready Preview, Comment Jun 5, 2026 7:54am

- Add robots.txt and sitemap.xml generation
- Implement JSON-LD structured data (WebSite, Organization, SoftwareApplication, BreadcrumbList, TechArticle, APIReference)
- Add Open Graph and Twitter Card metadata
- Create dynamic OG images for homepage and documentation pages
- Use branded banner for all social sharing images
- Add XSS protection for all JSON-LD output

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Satori requires explicit display: flex on divs with multiple children.
Also fixed JSX fragment closing tag in docs page.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codewizdave codewizdave merged commit e3802e2 into main Jun 5, 2026
6 checks passed
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