Migrate from Next.js to Astro with improved SEO - #41
Open
nikelaz wants to merge 2 commits into
Open
Conversation
- Replace Next.js with Astro + @astrojs/react + @astrojs/sitemap - Create Astro layout (Layout.astro) handling all HTML head, SEO meta tags, Open Graph, Twitter cards, JSON-LD, and Mantine color scheme script - Create SidebarApp React component (replaces Next.js app router layout) with MantineProvider, AppShell, fuzzy search, and syntax highlighting - Create Nav component removing next/link and usePathname dependencies - Add 23 Astro pages (index + all regex pattern pages) with proper metadata and JSON-LD - Add 23 page wrapper React components combining layout + content - Migrate seo.ts to src/lib removing Next.js Metadata types - Auto-generate sitemap.xml via @astrojs/sitemap - Add static public/robots.txt - Update ESLint config with TypeScript parser (removes eslint-config-next) - All 606 tests pass, build produces 23 static pages https://claude.ai/code/session_01TPY3vVrgSCZ2AM5fQq6XPK
❌ Deploy Preview for regex-snippets failed.
|
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
This PR migrates the RegEx Snippets application from Next.js to Astro, a modern static site generator better suited for content-heavy sites. The migration includes comprehensive SEO improvements with structured data, metadata management, and sitemap generation.
Key Changes
Framework Migration: Replaced Next.js with Astro as the primary framework
astro.config.mjs)SEO Infrastructure: Added comprehensive SEO support
src/lib/seo.tswith centralized metadata for all 22 validation pagesLayout.astrowith proper meta tags, Open Graph, Twitter Card, and canonical URLs@astrojs/sitemapfor automatic sitemap generationrobots.txtfor search engine crawling directivesComponent Architecture: Restructured components for Astro
SidebarApp.tsxwrapper component with Mantine UI integrationNav.tsxnavigation component with icon-based menusrc/components/pages/for each validation template.astrofiles with proper metadata injectionStyling & UI: Enhanced visual presentation
highlight-theme.cssfor syntax highlighting with light/dark mode supportnav.module.cssandheader.module.cssfor component stylingglobal.cssfor CSS custom propertiesSearch Functionality: Implemented client-side search
Build & Dependencies: Updated project dependencies
@astrojs/reactand@astrojs/sitemapintegrationsNotable Implementation Details
https://claude.ai/code/session_01TPY3vVrgSCZ2AM5fQq6XPK