-
Notifications
You must be signed in to change notification settings - Fork 71
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
Implement App Router #14801
Comments
If the preview routes present any difficulties, they can be deferred. We will have separate epic/tickets for preview. |
Upon deeper investigation,
|
The problem is with the usage of It seems like Webpack should be able to handle this and tree shake things out, but it's seemingly tripping over things. The client-only code does seem to be identified as unused code, but there's a TypeError being raised in one of the generated chunk files. I'm still investigating this. |
I forked |
Another possible path forward is to migrate to App Router but to keep the pages as Client Components ( This problem would remain:
|
Summary on possible paths forward1. Stay on Pages Router (temporarily or permanently)
2. Move to App Router but use Client Components
3. Move to App Router and fork
|
Looks like there is movement in next-drupal to support App Router:
So, maybe moving to App Router without forking next-drupal will be possible by the time this issue is reviewed again. |
User Story or Problem Statement
We should convert from our current page router-based setup to the new app router paradigm, as outlined in #14474 .
Acceptance Criteria
Description or Additional Context
A general migration guide is available in the Next.js documentation
Steps for Implementation
Initially here. Below, these steps are expanded more granularly.
General tasks
src/pages/[[...slug]].tsx
src/pages/_playground/api-explorer.tsx
src/pages/api/exit-preview.tsx
src/pages/api/preview.tsx
src/pages/_app.tsx
andsrc/pages/_document.tsx
The text was updated successfully, but these errors were encountered: