App Entry Point
Theapp.vue file serves as the entrypoint of your Nuxt application. By default, Nuxt treats this file as the entry point and renders its content for every route.
app/app.vue
Components
Most components are reusable pieces of the user interface, like buttons and menus. In Nuxt, you can create components in theapp/components/ directory, and they will be automatically available across your application without explicit imports.
app/components/ directory are automatically imported and available throughout your application, thanks to Nuxt’s auto-import feature.
Pages
Pages represent views for each specific route pattern. Every file in theapp/pages/ directory represents a different route displaying its content.
To use pages, create an app/pages/index.vue file and add the <NuxtPage /> component to app/app.vue (or remove app/app.vue for the default entry). You can then create more pages by adding new files in the app/pages/ directory.
Layouts
Layouts are wrappers around pages that contain a common user interface for several pages, such as headers and footers. Layouts are Vue files using<slot /> components to display the page content. The app/layouts/default.vue file will be used by default.
If you only have a single layout in your application, we recommend using
app/app.vue with <NuxtPage /> instead.Extending the HTML Template
If you only need to modify the
<head>, refer to the SEO and meta section of the documentation.render:html hook allows you to mutate the HTML before it’s sent to the client.
server/plugins/extend-html.ts