Skip to content

Commit

Permalink
feat: stabilize server.resolvedUrls (#9866)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Aug 26, 2022
1 parent 1673f3d commit c3f6731
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docs/guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,11 @@ 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.
Expand Down
2 changes: 0 additions & 2 deletions packages/vite/src/node/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ export interface PreviewServer {
httpServer: http.Server
/**
* The resolved urls Vite prints on the CLI
*
* @experimental
*/
resolvedUrls: ResolvedServerUrls
/**
Expand Down
2 changes: 0 additions & 2 deletions packages/vite/src/node/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,6 @@ 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
/**
Expand Down

0 comments on commit c3f6731

Please sign in to comment.