Skip to content

Commit

Permalink
fix(preview): set resolvedUrls null after close
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-es committed Oct 25, 2024
1 parent 4354b58 commit 5e3318e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guide/api-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ interface ViteDevServer {
*/
moduleGraph: ModuleGraph
/**
* Vite が CLI に表示する解決済みの URL。ミドルウェアモードの場合や `server.listen`
* 呼び出される前は null になります
* Vite が CLI に表示する解決済みの URL(URL エンコード済み)。ミドルウェアモードの場合、
* またはサーバーがどのポートもリッスンしていない場合は、`null` を返します
*/
resolvedUrls: ResolvedServerUrls | null
/**
Expand Down Expand Up @@ -274,8 +274,8 @@ interface PreviewServer {
*/
httpServer: http.Server
/**
* Vite が CLI に表示する解決済みURL
* サーバーがリッスンする前は null
* Vite が CLI に表示する解決済みの URL(URL エンコード済み)。
* サーバーがどのポートもリッスンしていない場合は、`null` を返します。
*/
resolvedUrls: ResolvedServerUrls | null
/**
Expand Down

0 comments on commit 5e3318e

Please sign in to comment.