Skip to content

Document Vite to Next.js migration path for ui-kit consumers#152

Open
policyengine[bot] wants to merge 1 commit into
mainfrom
bot/learnings-github-wrapped
Open

Document Vite to Next.js migration path for ui-kit consumers#152
policyengine[bot] wants to merge 1 commit into
mainfrom
bot/learnings-github-wrapped

Conversation

@policyengine
Copy link
Copy Markdown
Contributor

@policyengine policyengine Bot commented May 9, 2026

Summary

Adds migration checklist to policyengine-ui-kit-consumer-skill for converting Vite projects to Next.js while preserving ui-kit styling setup.

Context

Based on learnings from github-wrapped#2, which migrated from Vite + React 19 to Next.js 16 App Router. The migration involved several framework-specific changes that aren't currently documented in the skill.

Changes

  • New "Migrating from Vite to Next.js" section in framework-specific notes
  • 7-step checklist covering:
    • Removing Vite config files
    • Switching Tailwind plugins (@tailwindcss/vite → @tailwindcss/postcss)
    • Creating PostCSS config
    • Restructuring entry points (main.jsx → layout.tsx + page.jsx)
    • Fixing environment variable references (import.meta.env → process.env)
    • Updating package.json scripts

Why This Helps

Future sessions working on PolicyEngine tools that start as Vite prototypes and grow into Next.js apps will have a clear migration path that preserves the ui-kit styling setup.

🤖 Generated with Claude Code

Add migration checklist covering framework transition while preserving
ui-kit styling setup. Based on github-wrapped PR #2 migration from
Vite + React 19 to Next.js 16 App Router.

Key migration steps:
- Remove Vite config and index.html
- Switch from @tailwindcss/vite to @tailwindcss/postcss
- Create postcss.config.mjs
- Restructure entry points (main.jsx → layout.tsx + page.jsx)
- Fix environment variable references (import.meta.env → process.env)

🤖 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