Skip to content

Commit

Permalink
docs: update nuxt.config introduction (nuxt#2039)
Browse files Browse the repository at this point in the history
Co-authored-by: Damian <48835293+DamianGlowala@users.noreply.github.com>
  • Loading branch information
danielroe and DamianGlowala authored Nov 21, 2021
1 parent 9efdf43 commit 4055024
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/scripts/nuxt.config.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ head.title: 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
export default {
import { defineNuxtConfig } from 'nuxt3'

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

Learn more about all the different config properties
Expand Down

0 comments on commit 4055024

Please sign in to comment.