Next.js introduced the app/
directory (beta). This is the result of the Layouts RFC previously published for community feedback. This includes support for:
async
/await
support and the use
hook for component-level fetching.The app/
directory can coexist with the existing pages
directory for incremental adoption. While you don't need to use the app/
directory when upgrading to Next.js 13, we're laying the foundations to build complex interfaces while shipping less JavaScript.
pnpm i --frozen-lockfile
cp .env.example ./app/.env
pnpm dev