Skip to content

Commit 8f5d9da

Browse files
authored
fix(preview): set resolvedUrls null after close (#1655)
1 parent 4354b58 commit 8f5d9da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guide/api-javascript.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ interface ViteDevServer {
128128
*/
129129
moduleGraph: ModuleGraph
130130
/**
131-
* Vite が CLI に表示する解決済みの URL。ミドルウェアモードの場合や `server.listen`
132-
* 呼び出される前は null になります
131+
* Vite が CLI に表示する解決済みの URL(URL エンコード済み)。ミドルウェアモードの場合、
132+
* またはサーバーがどのポートもリッスンしていない場合は、`null` を返します
133133
*/
134134
resolvedUrls: ResolvedServerUrls | null
135135
/**
@@ -274,8 +274,8 @@ interface PreviewServer {
274274
*/
275275
httpServer: http.Server
276276
/**
277-
* Vite が CLI に表示する解決済みURL
278-
* サーバーがリッスンする前は null
277+
* Vite が CLI に表示する解決済みの URL(URL エンコード済み)。
278+
* サーバーがどのポートもリッスンしていない場合は、`null` を返します。
279279
*/
280280
resolvedUrls: ResolvedServerUrls | null
281281
/**

0 commit comments

Comments
 (0)