Nuxt/docs/content/2.guide/3.directory-structure/16.app.config.md

472 B

icon title head.title
IconFile app.config.ts Nuxt App Config

Nuxt App Config

You can easily provide runtime app configuration using app.config.ts file. It can have either of .ts, .js, or .mjs extensions.

export default defineAppConfig({
  foo: 'bar'
})

::alert{type=warning} Do not put any secret values inside app.config file. It is exposed to the user client bundle. ::

::ReadMore{link="/guide/features/app-config"}