mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-16 21:58:19 +00:00
fix(schema): only disallow vite server port and host (#7554)
This commit is contained in:
parent
4b4558c2be
commit
1f3d9a1e84
@ -1,6 +1,6 @@
|
|||||||
import type { KeepAliveProps, TransitionProps } from 'vue'
|
import type { KeepAliveProps, TransitionProps } from 'vue'
|
||||||
import { ConfigSchema } from '../../schema/config'
|
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 { Options as VuePluginOptions } from '@vitejs/plugin-vue'
|
||||||
import type { MetaObject } from './meta'
|
import type { MetaObject } from './meta'
|
||||||
import type { Nuxt } from './nuxt'
|
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.
|
* Use environment variables or top level `server` options to configure Nuxt server.
|
||||||
*/
|
*/
|
||||||
server?: never
|
server?: Omit<ViteServerOptions, 'port' | 'host'>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -61,11 +61,11 @@ export interface ViteConfig extends ViteUserConfig {
|
|||||||
|
|
||||||
type RuntimeConfigNamespace = Record<string, any>
|
type RuntimeConfigNamespace = Record<string, any>
|
||||||
|
|
||||||
export interface PublicRuntimeConfig extends RuntimeConfigNamespace {}
|
export interface PublicRuntimeConfig extends RuntimeConfigNamespace { }
|
||||||
|
|
||||||
// TODO: remove before release of 3.0.0
|
// TODO: remove before release of 3.0.0
|
||||||
/** @deprecated use RuntimeConfig interface */
|
/** @deprecated use RuntimeConfig interface */
|
||||||
export interface PrivateRuntimeConfig extends RuntimeConfigNamespace {}
|
export interface PrivateRuntimeConfig extends RuntimeConfigNamespace { }
|
||||||
|
|
||||||
export interface RuntimeConfig extends PrivateRuntimeConfig, RuntimeConfigNamespace {
|
export interface RuntimeConfig extends PrivateRuntimeConfig, RuntimeConfigNamespace {
|
||||||
public: PublicRuntimeConfig
|
public: PublicRuntimeConfig
|
||||||
@ -88,4 +88,4 @@ export interface NuxtAppConfig {
|
|||||||
keepalive: boolean | KeepAliveProps
|
keepalive: boolean | KeepAliveProps
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AppConfig {}
|
export interface AppConfig { }
|
||||||
|
Loading…
Reference in New Issue
Block a user