fix(schema): only disallow vite server port and host (#7554)

This commit is contained in:
Alexander Lichter 2022-09-15 14:21:58 +02:00 committed by GitHub
parent 4b4558c2be
commit 1f3d9a1e84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<ViteServerOptions, 'port' | 'host'>
}