docs-ko
docs-ko copied to clipboard
[SYNC] docs: add cover image to v3 announcement post (#9077)
docs: add cover image to v3 announcement post (#9077) (24f4f62)
+++ b/docs/guide/migration.md
@@ -1,8 +1,8 @@
# Migration from v2
-## Node Support
+## Node.js Support
-Vite no longer supports Node v12, which reached its EOL. Node 14.18+ is now required.
+Vite no longer supports Node.js 12, which reached its EOL. Node.js 14.18+ is now required.
## Modern Browser Baseline change
@@ -35,7 +35,9 @@ This section describes the biggest architecture changes in Vite v3. To allow pro
Vite's default dev server port is now 5173. You can use [`server.port`](../config/server-options.md#server-port) to set it to 3000.
-Vite's default dev server host is now `localhost`. You can use [`server.host`](../config/server-options.md#server-host) to set it to `127.0.0.1`.
+Vite's default dev server host is now `localhost`. In Vite v2, Vite was listening to `127.0.0.1` by default. Node.js under v17 normally resolves `localhost` to `127.0.0.1`, so for those versions, the host won't change. For Node.js 17+, you can use [`server.host`](../config/server-options.md#server-host) to set it to `127.0.0.1` to keep the same host as Vite v2.
+
+Note that Vite v3 now prints the correct host. This means Vite may print `127.0.0.1` as the listening host when `localhost` is used. You can set [`dns.setDefaultResultOrder('verbatim')`](https://nodejs.org/api/dns.html#dns_dns_setdefaultresultorder_order) to prevent this. See [`server.host`](../config/server-options.md#server-host) for more details.
### SSR Changes