Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next.js app router migration #1279

Merged
merged 50 commits into from
Feb 4, 2025
Merged

Next.js app router migration #1279

merged 50 commits into from
Feb 4, 2025

Conversation

annarhughes
Copy link
Member

@annarhughes annarhughes commented Jan 21, 2025

What changes did you make and why did you make them?

Migration from next.js pages to app router migration, which requires significant changes to app structure and logic, including how internationalisation and integrations are configured.

See the following guides related to the app router migration:
Next.js migration guide
MUI app router guide
Redux app router guide - see note on potential redundancy
next-intl app router guide

The approach is to migrate the entire app in this PR and test extensively before release. An incremental migration was preferred but was costing more time to make integrations (next-intl, MUI, Redux) work with both pages and app router.

Note that server components and next.js data fetching has not yet been fully implemented. Whilst the app has been moved to the app router structure and uses the latest packages and patterns, we have not optimised our client components to 100% to pull out more into server components - this will be completed incrementally later.

We should also consider removing Redux in favour of next.js data fetching and available state such as context - the latest changes in app router make Redux less effective or necessary. MUI is adding support for RSC and we will need to refactor how we use it (likely using the new PigmentCSS option) as part of the splitting client and server components.

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
bloom-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 4, 2025 10:06am

@annarhughes annarhughes force-pushed the app-migration-layouts branch from 53bec74 to 42b7446 Compare February 3, 2025 11:27
@annarhughes annarhughes changed the title WIP: App router migration Next.js app router migration Feb 3, 2025
@annarhughes annarhughes marked this pull request as ready for review February 3, 2025 11:29
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