PolicyEngine / PolicyEngine/policyengine-app-v2
Next.js migration: Vite cleanup (deferred)
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 3
- Avg merge
- 1d 50m
- Merged PRs (30d)
- 39
Description
Deferred cleanup tasks from the Vite → Next.js migration (#811). To be done after site is stable and ui-kit is integrated.
Remaining deletions
- Remove
app/scripts/generate-prerender.ts(replaced by Next.js SSG) - Remove
app/scripts/generate-sitemap.ts(replaced bywebsite/src/app/sitemap.ts) - Remove
app/scripts/generate-llms-txt.ts(replaced by route handlers in PR #905) - Remove Vite config (
vite.config.mjs,website.html,calculator.html) - Remove React Router (
react-router-domdependency, router files) - Remove SPA fallback middleware logic
- Update CI to stop building Vite app
Improvements (not regressions)
- Add
generateMetadatato home page and research listing for social sharing previews (#815) - Optionally add
generateMetadatato supporters and citations pages
Context
Migration audit on 2026-04-02 confirmed all phases are functionally complete. Website and calculator both serving from Next.js in production. These items are safe to defer until ui-kit integration stabilizes shared components.
Parent issue: #811
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read parent issue #811 and confirm the site is stable and ui-kit integration is complete before starting. Then review the listed Vite scripts, vite.config.mjs, website.html, calculator.html, router files, SPA fallback middleware, and CI configuration. Done means obsolete Vite and router paths are removed, CI no longer builds the Vite app, and the requested metadata improvements are addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, react, typescript, vite
- Domain
- build-system, ci-cd, frontend, web-dev
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100