mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
docs: add defineNuxtConfig
to deployment example (#24451)
This commit is contained in:
parent
e554f2be68
commit
e3f349f612
@ -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:
|
You can explicitly set the desired preset in the [`nuxt.config.ts`](/docs/guide/directory-structure/nuxt-config) file:
|
||||||
|
|
||||||
```js [nuxt.config.ts]
|
```js [nuxt.config.ts]
|
||||||
export default {
|
export default defineNuxtConfig({
|
||||||
nitro: {
|
nitro: {
|
||||||
preset: 'node-server'
|
preset: 'node-server'
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
```
|
```
|
||||||
|
|
||||||
... or use the `NITRO_PRESET` environment variable when running `nuxt build`:
|
... or use the `NITRO_PRESET` environment variable when running `nuxt build`:
|
||||||
|
Loading…
Reference in New Issue
Block a user