Index of every page on this site: llms.txt

Nuxt Config

enabled: boolean

  • Default: true

Whether site config activates for this project.

debug: boolean

  • Default: false

Whether to activate debug mode for site config.

multiTenancy: { hosts: string[]; config: SiteConfigInput }[]

  • Default: []

Configure multiple sites with different configurations based on the host. Each site configuration requires:

  • hosts: An array of hostnames that should use this configuration
  • config: The site configuration to use when the hostname matches
nuxt.config.ts
export default defineNuxtConfig({
  site: {
    multiTenancy: [
      {
        hosts: ['www.example.com', 'example.com', 'local.example.com'],
        config: {
          name: 'Example',
          description: 'Example description',
          url: 'example.com',
          defaultLocale: 'en',
          currentLocale: 'en',
        },
      },
      {
        hosts: ['www.foo.com', 'foo.com', 'local.foo.com'],
        config: {
          url: 'foo.com',
          name: 'Foo',
          description: 'Foo description',
        },
      },
    ]
  }
})

url: string

The canonical site URL. On supported CI platforms (Vercel, Netlify, Cloudflare Pages), this is automatically populated from platform environment variables if not explicitly set. See How it works for details.

env: string

  • Default: import.meta.envName, then process.env.NODE_ENV

The environment the site is running in.

NUXT_SITE_ENV takes priority over this default when configured.

name: string

The name of the site. On Vercel and Netlify, this is automatically populated from platform environment variables if not explicitly set. See How it works for details.

indexable: boolean

  • Default: siteConfig.env === 'production'

Whether the site can be indexed by search engines.

trailingSlash: boolean

  • Default: false

Whether to add trailing slashes to the URLs.

defaultLocale: string

The default locale of the site.

Was this page helpful?