Skip to content

Add Vite to Next.js migration skill#160

Open
policyengine[bot] wants to merge 1 commit into
mainfrom
bot/learnings-2025-year-in-review
Open

Add Vite to Next.js migration skill#160
policyengine[bot] wants to merge 1 commit into
mainfrom
bot/learnings-2025-year-in-review

Conversation

@policyengine

@policyengine policyengine Bot commented May 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Captures migration patterns learned from PolicyEngine/2025-year-in-review PR #3, where we migrated from Vite + react-router-dom to Next.js 16 App Router.

What's included

New skill: skills/frontend/vite-to-nextjs-migration-skill/SKILL.md

Covers:

  • Dependency changes (removing Vite/react-router-dom, adding Next.js 16)
  • Restructuring to App Router filesystem patterns
  • Converting React Router routes to Next.js dynamic routes
  • YAML → JSON data file conversion (no Vite ?raw import)
  • Environment variable migration (VITE_ → NEXT_PUBLIC_)
  • Tailwind 4 setup with @tailwindcss/postcss
  • Client vs Server Component patterns
  • Common migration errors and fixes

Why this helps

Several legacy PolicyEngine tools still use Vite. This skill provides a systematic migration checklist so future Claude sessions can update them to match current standards (Next.js App Router + Tailwind 4 + ui-kit).

🤖 Generated with Claude Code

Captures patterns from 2025-year-in-review migration (PR #3):
- Vite + react-router-dom → Next.js 16 App Router
- YAML → JSON data conversion
- Filesystem-based routing with dynamic routes
- Tailwind 4 setup differences
- Environment variable migration (VITE_ → NEXT_PUBLIC_)
- Client vs Server Component patterns

Helps future Claude sessions migrate legacy PolicyEngine tools
to current Next.js standards.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <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