> ## Documentation Index
> Fetch the complete documentation index at: https://mintlify.com/nuxt/nuxt/llms.txt
> Use this file to discover all available pages before exploring further.

# nuxt.config.ts

> Nuxt can be easily configured with a single nuxt.config file.

The `nuxt.config` file extension can either be `.js`, `.ts` or `.mjs`.

```ts nuxt.config.ts theme={null}
export default defineNuxtConfig({
  // My Nuxt config
})
```

<Tip>
  `defineNuxtConfig` helper is globally available without import.
</Tip>

You can explicitly import `defineNuxtConfig` from `nuxt/config` if you prefer:

```ts nuxt.config.ts theme={null}
import { defineNuxtConfig } from 'nuxt/config'

export default defineNuxtConfig({
  // My Nuxt config
})
```

<Card title="Nuxt Configuration Documentation" icon="settings" href="/docs/4.x/api/configuration/nuxt-config">
  Discover all the available options in the **Nuxt configuration** documentation.
</Card>

To ensure your configuration is up to date, Nuxt will make a full restart when detecting changes in the main configuration file, the [`.env`](#), [`.nuxtignore`](#) and [`.nuxtrc`](#) dotfiles.
