From ec210190d13f904440ff25c7c4260252e9af892a Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Wed, 7 Sep 2022 13:26:06 +0200 Subject: [PATCH] fix(schema): disallow setting vite server properties (#7317) --- packages/schema/src/types/config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages/schema/src/types/config.ts b/packages/schema/src/types/config.ts index 3fda92c80c..dbf73f4b4d 100644 --- a/packages/schema/src/types/config.ts +++ b/packages/schema/src/types/config.ts @@ -45,7 +45,12 @@ export interface ViteConfig extends ViteUserConfig { /** * Warmup vite entrypoint caches on dev startup. */ - warmupEntry?: boolean + warmupEntry?: boolean, + + /** + * Use environment variables or top level `server` options to configure Nuxt server. + */ + server: never }