Opening a fresh Next.js project for the first time can feel unfamiliar, so let's break down what each folder does in plain English:
app/— The heart of your application. Every route, page, layout, and API endpoint lives here.app/layout.jsx— The outer shell (HTML,<body>, navbar, footer) shared across your pages.app/page.jsx— Your homepage (/).public/— Static files like logos, favicons, and PDFs. Anything insidepublic/logo.pngis reachable at/logo.png.next.config.mjs— Configuration file for image domains, redirects, and custom build settings.
ADVERTISEMENT