docs: update `nuxt.config` introduction (#2039)

Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
This commit is contained in:
Daniel Roe 2021-11-21 12:32:16 +00:00 committed by GitHub
parent 9efdf43eec
commit 4055024e5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -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