mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
docs: update nuxt.config
introduction (#2039)
Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
This commit is contained in:
parent
9efdf43eec
commit
4055024e5f
@ -6,12 +6,14 @@ head.title: Nuxt configuration file
|
|||||||
|
|
||||||
# Nuxt configuration file
|
# Nuxt configuration file
|
||||||
|
|
||||||
Nuxt can be configured easily with one single file, called `nuxt.config`, it supports both `.js` and `.ts` extension.
|
Nuxt can be easily configured with a single `nuxt.config` file, which can have either a `.js`, `.ts` or `.mjs` extension.
|
||||||
|
|
||||||
```ts
|
```ts
|
||||||
export default {
|
import { defineNuxtConfig } from 'nuxt3'
|
||||||
|
|
||||||
|
export default defineNuxtConfig({
|
||||||
// My Nuxt config
|
// My Nuxt config
|
||||||
}
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
Learn more about all the different config properties
|
Learn more about all the different config properties
|
||||||
|
Loading…
Reference in New Issue
Block a user