AlexsLemonade / refinebio-web

Refinebio Web
https://staging.web.refine.bio
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Next.js App Router Migration #339

Open nozomione opened 2 months ago

nozomione commented 2 months ago

--- in progress: editing ---

Context

Next.js v13 introduced the new routing model, App Router, which supports server side components and requires a new project structure. This epic is to track the router migration process from page to app.

[!note] The specifics of epic may be continuously adjusted/updated during the development as needed (e.g., encountering an unexpected errors, add, update, or remove issues)

The issues tracked by this epic as follows:

Problem or idea

This section will be filled later.

Page Meta Tags (in progress - this section still needs to be defined)

Currently meta tags are added to pages using components/shared/PageTitle. However, next/head has been replaced by the new built-in SEO Metadata API, and we need to adjust the way we handle metadata in each route.

Data Fetching (in progress - this section still needs to be defined)

Resource: Migrating Data Fetching Methods, Data Fetching

[!note] The getServerSideProps, getStaticProps, and getInitialProps methods have been replaced with a simpler API.

Project Reorganization (in progress - this section still needs to be defined)

Colocation, Project Organization Features

We'll restructure and organize the project's folders/files.

Solution or next step