From 1f3d9a1e84e2d9296c4791cb9bc0e31da2358fcd Mon Sep 17 00:00:00 2001 From: Alexander Lichter Date: Thu, 15 Sep 2022 14:21:58 +0200 Subject: [PATCH] fix(schema): only disallow vite server port and host (#7554) --- packages/schema/src/types/config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/schema/src/types/config.ts b/packages/schema/src/types/config.ts index 51047eb9af..129844dcc4 100644 --- a/packages/schema/src/types/config.ts +++ b/packages/schema/src/types/config.ts @@ -1,6 +1,6 @@ import type { KeepAliveProps, TransitionProps } from 'vue' import { ConfigSchema } from '../../schema/config' -import type { UserConfig as ViteUserConfig } from 'vite' +import type { ServerOptions as ViteServerOptions, UserConfig as ViteUserConfig } from 'vite' import type { Options as VuePluginOptions } from '@vitejs/plugin-vue' import type { MetaObject } from './meta' import type { Nuxt } from './nuxt' @@ -53,7 +53,7 @@ export interface ViteConfig extends ViteUserConfig { /** * Use environment variables or top level `server` options to configure Nuxt server. */ - server?: never + server?: Omit } @@ -61,11 +61,11 @@ export interface ViteConfig extends ViteUserConfig { type RuntimeConfigNamespace = Record -export interface PublicRuntimeConfig extends RuntimeConfigNamespace {} +export interface PublicRuntimeConfig extends RuntimeConfigNamespace { } // TODO: remove before release of 3.0.0 /** @deprecated use RuntimeConfig interface */ -export interface PrivateRuntimeConfig extends RuntimeConfigNamespace {} +export interface PrivateRuntimeConfig extends RuntimeConfigNamespace { } export interface RuntimeConfig extends PrivateRuntimeConfig, RuntimeConfigNamespace { public: PublicRuntimeConfig @@ -88,4 +88,4 @@ export interface NuxtAppConfig { keepalive: boolean | KeepAliveProps } -export interface AppConfig {} +export interface AppConfig { }