You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation using the Pages Directory will become increasingly difficult to maintain and scale. Challenges with complex routing, data fetching, and overall code organization will become more apparent. As the application grows, these issues will only intensify, hindering development velocity and potentially impacting performance. The App Directory addresses these issues by offering a more structured, efficient, and scalable architecture.
How will this change help?
Improved Performance: Server Components allow for data fetching on the server, reducing the amount of JavaScript sent to the client, resulting in faster initial load times and improved Core Web Vitals.
Enhanced SEO: Server-side rendering improves SEO by providing search engines with fully rendered HTML content.
Simplified Routing: The file-system based routing in the App Directory is more intuitive and easier to manage, especially as the application grows. Nested layouts and improved support for dynamic routes simplify route definitions.
Better Code Organization: The App Directory promotes better component co-location and organization, leading to a more maintainable and scalable codebase.
Data Fetching: Data fetching, caching, and mutations are simplified with features like async/await directly within layouts and components.
Future-Proofing: Align with the recommended Next.js architecture for future feature adoption and performance optimizations.
Screenshots
No response
How could it be implemented/designed?
The migration can be implemented in the following phases:
Planning: Analyze existing routes and components. Prioritize migration based on complexity. Define a clear migration plan with milestones and timelines.
Incremental Migration: Migrate in phases, starting with less complex sections. Convert pages to layouts and components, leveraging Server Components strategically.
Testing: Implement comprehensive testing to ensure functional parity and performance improvements. Focus on unit, integration, and end-to-end tests.
Potential Challenges:
Refactoring Effort: Significant code refactoring will be required.
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.
Why do we need this improvement?
The current implementation using the Pages Directory will become increasingly difficult to maintain and scale. Challenges with complex routing, data fetching, and overall code organization will become more apparent. As the application grows, these issues will only intensify, hindering development velocity and potentially impacting performance. The App Directory addresses these issues by offering a more structured, efficient, and scalable architecture.
How will this change help?
async/await
directly within layouts and components.Screenshots
No response
How could it be implemented/designed?
The migration can be implemented in the following phases:
Potential Challenges:
🚧 Breaking changes
Yes
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue?
Yes I am willing to submit a PR!
The text was updated successfully, but these errors were encountered: