feat: comprehensive SEO & AEO improvements#55
Open
ZingerLittleBee wants to merge 1 commit intomainfrom
Open
Conversation
- Add robots.txt via Next.js Metadata API (allow all, disallow /api/ and /ingest/) - Add sitemap.xml with all pages × both locales and hreflang alternates - Fix <html lang> to be dynamic based on locale cookie (was hardcoded to 'en') - Add canonical URLs and hreflang alternate links in locale layout metadata - Add per-page title/description metadata for all sub-pages (about, download, pricing, changelog, privacy, terms, dpa) via server-component layouts - Add title template '%s | Dockerman' for consistent page titles - Add robots meta with googleBot directives for max snippet/image/video - Add Organization + WebSite JSON-LD structured data site-wide - Add FAQPage + SoftwareApplication JSON-LD on home page - Pass x-forwarded-path header in middleware for canonical URL generation - Convert changelog layout from client to server component for metadata support Co-Authored-By: Oz <oz-agent@warp.dev>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive SEO & AEO (Answer Engine Optimization) improvements for the landing site. All changes compile and build successfully.
Changes
Technical SEO
src/app/robots.tsvia Next.js Metadata API; allows all crawlers, blocks/api/and/ingest/src/app/sitemap.tswith all public pages × both locales (en,zh), includinghreflangalternates per entry<html lang>— Root layout now reads theNEXT_LOCALEcookie to set the correctlangattribute (was hardcoded to"en")<link rel="canonical">for the current page<link rel="alternate" hreflang="...">for bothenandzhx-forwarded-pathso the locale layout can reconstruct the current URL for canonicals/alternatesOn-page SEO
%s | Dockermanso sub-pages get"Download | Dockerman", etc.generateMetadatawith locale-awaretitle+descriptionfor: about, download, pricing, changelog, privacy, terms, DPAgoogleBotdirectives (max-snippet:-1,max-image-preview:large,max-video-preview:-1)Structured Data (JSON-LD)
enandzhNew files
src/app/robots.tssrc/app/sitemap.tssrc/components/JsonLd.tsx— Reusable JSON-LD<script>componentsrc/components/ui/HomeJsonLd.tsx— Home page structured datasrc/app/[locale]/(main)/pricing/layout.tsx— Pricing metadata layoutThis PR was generated with Oz.