Replies: 2 comments
-
|
Strongly agree on the benefits of doing so, particularly Next.js |
Beta Was this translation helpful? Give feedback.
-
Blog/report workflow: MDX in Next.jsAs part of this migration, we should also move our blog/report pipeline to MDX. This is a natural fit with Next.js and solves several current pain points. Current state
Recommendation: MDX + RechartsMDX is markdown that supports JSX — meaning authors write normal markdown but can embed React components inline. Next.js has first-class MDX support via Why MDX fits us well:
Migration strategy
This is incremental — no big-bang migration needed. The shared component library (shadcn/ui + custom PolicyEngine components) means charts, calculators, and other embeds are consistent across all posts. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal
Adopt Next.js (App Router) + Tailwind CSS v4 + shadcn/ui as the default frontend stack for all PolicyEngine projects — the main app, interactive tools, calculators, and dashboards.
This supersedes #752 (which proposed Next.js for the main app only).
Why now
Decision analysis
We ran a structured forecast (farness decision
36f0291e) with these KPIs weighted by importance:Results (assuming tools level up over time):
Key drivers:
What this means in practice
Default stack for all new projects
tw:prefixMigration plan
Phase 1 — Main app (policyengine-app-v2):
"use client")Phase 2 — New tools:
"use client"on the main page by default (acts like a Vite SPA until you need SSR)Phase 3 — Existing tools (incremental):
What carries over unchanged
"use client")Risks and mitigations
"use client"for interactive pagesNot proposing
Beta Was this translation helpful? Give feedback.
All reactions