Skip to content

Next.js migration: skeleton + static pages #812

@MaxGhenis

Description

@MaxGhenis

Part of #811

Goal

Set up Next.js App Router alongside the existing Vite app and migrate the static website pages.

Tasks

  • Initialize Next.js 15 in the repo (e.g. next/ folder or top-level restructure)
  • Configure Tailwind CSS 4, path aliases, TypeScript
  • Set up shared component imports from existing app/src/components/
  • Deploy to a Vercel preview URL
  • Migrate static pages to file-based routes:
    • /:countryId (home)
    • /:countryId/team
    • /:countryId/donate
    • /:countryId/supporters
    • /:countryId/privacy
    • /:countryId/terms-of-service
    • /:countryId/brand (and sub-routes)
    • /:countryId/claude-plugin
  • Set up RedirectToCountry logic (root → /us)
  • Port StaticLayout (header/footer) to Next.js layout
  • Verify pages render correctly against current production

Notes

  • Keep Vite app running in parallel — this is additive, not a replacement yet
  • The [countryId] dynamic segment maps naturally to Next.js dynamic routes
  • Redux store (metadata) and React Query provider need to be set up as client-side providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions