Skip to content

Migrate from Pages Router to App Router#2

Merged
tmshv merged 19 commits intomainfrom
feature-pages-to-app
Feb 11, 2026
Merged

Migrate from Pages Router to App Router#2
tmshv merged 19 commits intomainfrom
feature-pages-to-app

Conversation

@tmshv
Copy link
Member

@tmshv tmshv commented Feb 10, 2026

Summary

  • Migrated the entire frontend from Next.js Pages Router to App Router
  • Introduced route groups: (default) for regular pages, (map) for the map page — replacing the router.pathname == '/map' check in _app.tsx
  • Split the monolithic _app.tsx into separate files: root layout, client providers, and per-route-group layouts
  • Split the monolithic IndexPage component into 5 focused components: HeroSection, TimelineSection, MapCTA, SurveyCTA, Sponsors
  • Converted pages/api/indexFeedback to App Router route handler
  • Replaced next-seo with native metadata export
  • Removed getServerSideProps from map page (was providing empty fallback data)
  • Extracted font definition to fonts.ts to keep root layout server-renderable
  • Added missing 'use client' directives to components that use hooks
  • Wrapped useSearchParams() usages in Suspense boundaries

🤖 Generated with Claude Code

Copy link
Collaborator

@manhir manhir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed some styles, looks alright ¯_(ツ)_/¯

@tmshv tmshv merged commit e22edc9 into main Feb 11, 2026
2 checks passed
@tmshv tmshv deleted the feature-pages-to-app branch February 11, 2026 16:08
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