Closed mdrayer closed 3 months ago
With the switch to using the Nextjs App Router, there are still a couple places where pages directory setup is still assumed. We'll need to clean these up to swap fully to app router.
pages
app
Warning: You're using next/head inside the app directory, please migrate to the Metadata API. See https://nextjs.org/docs/app/building-your-application/upgrading/app-router-migration#step-3-migrating-nexthead for more details.
next/head
The culprits seems to be source/04-templates/LandingPage/LandingPage.tsx and source/04-templates/Page/Page.tsx.
source/04-templates/LandingPage/LandingPage.tsx
source/04-templates/Page/Page.tsx
eslint.dirs
next.config.js
With the switch to using the Nextjs App Router, there are still a couple places where
pages
directory setup is still assumed. We'll need to clean these up to swap fully toapp
router.The culprits seems to be
source/04-templates/LandingPage/LandingPage.tsx
andsource/04-templates/Page/Page.tsx
.pages
instead ofapp
: https://github.com/forumone/nextjs-project/blob/1.x/package.json#L12-L13eslint.dirs
config innext.config.js
still refers topages
: https://github.com/forumone/nextjs-project/blob/1.x/next.config.js#L9