2021-10-11 17:45:19 +00:00
|
|
|
---
|
|
|
|
icon: IconFile
|
2021-10-13 08:58:28 +00:00
|
|
|
title: nuxt.config.ts
|
2021-10-11 17:45:19 +00:00
|
|
|
head.title: Nuxt configuration file
|
|
|
|
---
|
|
|
|
|
|
|
|
# Nuxt configuration file
|
|
|
|
|
2021-11-21 12:32:16 +00:00
|
|
|
Nuxt can be easily configured with a single `nuxt.config` file, which can have either a `.js`, `.ts` or `.mjs` extension.
|
2021-10-11 17:45:19 +00:00
|
|
|
|
|
|
|
```ts
|
2021-11-21 12:32:16 +00:00
|
|
|
import { defineNuxtConfig } from 'nuxt3'
|
|
|
|
|
|
|
|
export default defineNuxtConfig({
|
2021-10-11 17:45:19 +00:00
|
|
|
// My Nuxt config
|
2021-11-21 12:32:16 +00:00
|
|
|
})
|
2021-10-11 17:45:19 +00:00
|
|
|
```
|
|
|
|
|
2021-10-13 09:12:17 +00:00
|
|
|
Learn more about all the different config properties
|
2021-10-11 17:45:19 +00:00
|
|
|
|
|
|
|
<!-- GENERATED_CONFIG_DOCS -->
|