From 7875e4af8abbb008a0493f4798fa9b4ef1bad59a Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Wed, 20 Jul 2022 15:28:26 -0700 Subject: [PATCH] target not server --- dist/index.js | 2 +- src/fixtures/nuxt/blank.expected.js | 2 +- src/fixtures/nuxt/default.expected.js | 2 +- src/set-pages-path.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index f93ddee..2d6ff95 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14842,7 +14842,7 @@ function getConfigParserSettings(staticSiteGenerator, path) { // Set the target to static too // https://nuxtjs.org/docs/configuration-glossary/configuration-target/ - server: 'static' + target: 'static' } } case 'next': diff --git a/src/fixtures/nuxt/blank.expected.js b/src/fixtures/nuxt/blank.expected.js index 8fdc28c..a4b48a8 100644 --- a/src/fixtures/nuxt/blank.expected.js +++ b/src/fixtures/nuxt/blank.expected.js @@ -1,2 +1,2 @@ // Default Pages configuration for Nuxt -export default {server: 'static', router: {base: '/docs/'}} +export default {target: 'static', router: {base: '/docs/'}} diff --git a/src/fixtures/nuxt/default.expected.js b/src/fixtures/nuxt/default.expected.js index 785da28..a7ae19f 100644 --- a/src/fixtures/nuxt/default.expected.js +++ b/src/fixtures/nuxt/default.expected.js @@ -1,6 +1,6 @@ export default { // Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode - server: 'static', + target: 'static', router: { base: "/docs/" }, ssr: false, diff --git a/src/set-pages-path.js b/src/set-pages-path.js index fb50209..82fefd0 100644 --- a/src/set-pages-path.js +++ b/src/set-pages-path.js @@ -15,7 +15,7 @@ function getConfigParserSettings(staticSiteGenerator, path) { // Set the target to static too // https://nuxtjs.org/docs/configuration-glossary/configuration-target/ - server: 'static' + target: 'static' } } case 'next':