docs: add defineNuxtConfig to deployment example (#24451)

This commit is contained in:
roiLeo 2023-11-24 15:11:55 +01:00 committed by GitHub
parent e554f2be68
commit e3f349f612
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -151,11 +151,11 @@ In addition to Node.js servers and static hosting services, a Nuxt 3 project can
You can explicitly set the desired preset in the [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file:
```js [nuxt.config.ts]
export default {
export default defineNuxtConfig({
nitro: {
preset: 'node-server'
}
}
})
```
... or use the `NITRO_PRESET` environment variable when running `nuxt build`: