diff --git a/docs/guide/api-javascript.md b/docs/guide/api-javascript.md index bebe594a8ffd5b..6167bd7dfe7793 100644 --- a/docs/guide/api-javascript.md +++ b/docs/guide/api-javascript.md @@ -84,11 +84,6 @@ interface ViteDevServer { * and hmr state. */ moduleGraph: ModuleGraph - /** - * The resolved urls Vite prints on the CLI. null in middleware mode or - * before `server.listen` is called. - */ - resolvedUrls: ResolvedServerUrls | null /** * Programmatically resolve, load and transform a URL and get the result * without going through the http request pipeline. diff --git a/packages/vite/src/node/preview.ts b/packages/vite/src/node/preview.ts index ad746be0994786..7b2cc4bb1729b4 100644 --- a/packages/vite/src/node/preview.ts +++ b/packages/vite/src/node/preview.ts @@ -48,7 +48,9 @@ export interface PreviewServer { */ httpServer: http.Server /** - * The resolved urls Vite prints on the CLI + * The resolved urls Vite prints on the + * + * @experimental */ resolvedUrls: ResolvedServerUrls /** diff --git a/packages/vite/src/node/server/index.ts b/packages/vite/src/node/server/index.ts index 13875066bf8db7..80c1ae308db6ca 100644 --- a/packages/vite/src/node/server/index.ts +++ b/packages/vite/src/node/server/index.ts @@ -188,6 +188,8 @@ export interface ViteDevServer { /** * The resolved urls Vite prints on the CLI. null in middleware mode or * before `server.listen` is called. + * + * @experimental */ resolvedUrls: ResolvedServerUrls | null /**