-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Description
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.
- I get the following error when I run the nextjs app, :
Warning: You're using
next/headinside theappdirectory, 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.
The culprits seems to be source/04-templates/LandingPage/LandingPage.tsx and source/04-templates/Page/Page.tsx.
- Prettier scripts still refer to
pagesinstead ofapp: https://github.com/forumone/nextjs-project/blob/1.x/package.json#L12-L13 - The
eslint.dirsconfig innext.config.jsstill refers topages: https://github.com/forumone/nextjs-project/blob/1.x/next.config.js#L9 - Documentation in the README files could use updating to refer to App Router docs.
Metadata
Metadata
Assignees
Labels
No labels