- If you forget to create the root layout, Next.js will automatically create this file when running the development server with
next dev. - You can optionally use a
srcfolder in the root of your project to separate your application's code from configuration files.Create a
publicfolder at the root of your project to store static assets such as images, fonts, etc. Files insidepubliccan then be referenced by your code starting from the base URL (/).You can then reference these assets using the root path (
/). For example,public/profile.pngcan be referenced as/profile.png:Next.js comes with built-in TypeScript support. To add TypeScript to your project, rename a file to.ts/.tsxand runnext dev. Next.js will automatically install the necessary dependencies and add atsconfig.jsonfile with the recommended config options.Next.js includes a custom TypeScript plugin and type checker, which VSCode and other code editors can use for advanced type-checking and auto-completion.