Skip to content

Migrate to React Router v7 + Cloudflare Pages#51

Open
rajatkulkarni95 wants to merge 2 commits intomainfrom
stack-refresh
Open

Migrate to React Router v7 + Cloudflare Pages#51
rajatkulkarni95 wants to merge 2 commits intomainfrom
stack-refresh

Conversation

@rajatkulkarni95
Copy link
Copy Markdown
Owner

Summary

  • Full stack migration: Next.js 13 / Vercel → React Router v7 (SPA mode) / Cloudflare Pages
  • Modernized deps: React 19, TypeScript 5.8, Tailwind CSS v4, Vite
  • Simplified state: Replaced Zustand with React context + localStorage for starred stories
  • Removed: next, next-seo, next-themes, zustand, postcss, @svgr/webpack, eslint-config-next

Test plan

  • npm run dev — all routes render correctly
  • Verify list pages (top, new, ask, show) load data and paginate
  • Verify story detail page with comments
  • Verify star/unstar persists across navigation
  • Verify theme toggle (dark/light) persists on reload
  • Verify keyboard shortcuts (T, S, N, A, X)
  • npm run build — produces static output in build/client/
  • Deploy to Cloudflare Pages

🤖 Generated with Claude Code

Replace the entire Next.js 13 stack with a modern SPA architecture:
- React Router v7 (SPA mode) with Vite as build tool
- React 19, TypeScript 5.8, Tailwind CSS v4
- Replace Zustand with React context for starred stories
- Replace next-themes with custom ThemeProvider
- Static build output for Cloudflare Pages deployment

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 27, 2026

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

Project Deployment Actions Updated (UTC)
hckrnws Error Error Mar 27, 2026 4:01am

Request Review

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 27, 2026

Deploying hckrnws with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5aaa8ab
Status: ✅  Deploy successful!
Preview URL: https://7de053f8.hckrnws.pages.dev

View logs

- Replace "Loading..." text with pulsing skeleton placeholders for list and detail pages
- Add /item?id= route to redirect YC URLs to /stories/:id

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant