From e3f349f61274d85889c2292d425ec0a68bb8e5ab Mon Sep 17 00:00:00 2001 From: roiLeo Date: Fri, 24 Nov 2023 15:11:55 +0100 Subject: [PATCH] docs: add `defineNuxtConfig` to deployment example (#24451) --- docs/1.getting-started/10.deployment.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/1.getting-started/10.deployment.md b/docs/1.getting-started/10.deployment.md index 3fa6652560..acc2087756 100644 --- a/docs/1.getting-started/10.deployment.md +++ b/docs/1.getting-started/10.deployment.md @@ -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`: