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

refactor: Migrate to Next.js App Router #246

Open
eduramme opened this issue Nov 20, 2024 · 0 comments
Open

refactor: Migrate to Next.js App Router #246

eduramme opened this issue Nov 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@eduramme
Copy link
Collaborator

Migrate to Next.js App Router

Description

Our application is currently using the Pages Router in Next.js. To take advantage of the latest features and improvements, we should migrate to the App Router. This migration will modernize our codebase, align with best practices, and enable features such as:

  • Improved server components support
  • Enhanced routing flexibility
  • Built-in layouts and nested routing
  • Streaming and suspense capabilities

Tasks

  1. Analyze Current Implementation

    • Identify all pages and components currently relying on the Pages Router.
    • Document dependencies and potential areas of complexity during migration.
  2. Plan the Migration

    • Define folder structure for the App Router (e.g., app/ directory).
    • Plan a phased migration strategy, if possible, to reduce downtime.
  3. Implement App Router

    • Refactor components and pages to adhere to the App Router structure.
    • Ensure new routing conventions, such as nested layouts and loaders, are applied.
  • New features of the App Router are leveraged where applicable.

Additional Notes

  • Refer to the Next.js App Router documentation for detailed guidance and best practices.
  • Ensure a backup branch is maintained until migration is complete and stable.

Feel free to suggest adjustments or add further details to ensure a smooth migration process!

@eduramme eduramme added the enhancement New feature or request label Nov 20, 2024
@eduramme eduramme added this to ENS Nov 20, 2024
@eduramme eduramme moved this to 💡 Ideas in ENS Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 💡 Ideas
Development

No branches or pull requests

1 participant