Skip to content

Commit 44b7446

Browse files
committed
fix: resolved conflict
1 parent 2da9651 commit 44b7446

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

config/preview-options.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,9 @@ export default defineConfig({
6060
- **类型:** `https.ServerOptions`
6161
- **默认:** [`server.https`](./server-options#server-https)
6262

63-
<<<<<<< HEAD
64-
启用 TLS + HTTP/2。注意,只有在与 [`server.proxy` 选项](./server-options#server-proxy) 同时使用时,才会降级为 TLS。
63+
启用 TLS + HTTP/2。
6564

66-
该值也可以传递给 `https.createServer()`[options 对象](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener)
67-
=======
68-
Enable TLS + HTTP/2.
69-
70-
See [`server.https`](./server-options#server-https) for more details.
71-
>>>>>>> c2de4078a5ac7fc014f5c5135f223e153799f0fe
65+
有关更多详细信息,请参阅 [`server.https`](./server-options#server-https)
7266

7367
## preview.open {#preview-open}
7468

config/server-options.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,9 @@ Vite允许响应的主机名。
9090

9191
- **类型:** `https.ServerOptions`
9292

93-
<<<<<<< HEAD
94-
启用 TLS + HTTP/2。注意:当 [`server.proxy` 选项](#server-proxy) 也被使用时,将会仅使用 TLS。
93+
启用 TLS + HTTP/2。该值是传递给 `https.createServer()`[options 对象](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener)
9594

96-
这个值也可以是一个传递给 `https.createServer()`[选项对象](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener)
97-
=======
98-
Enable TLS + HTTP/2. The value is an [options object](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener) passed to `https.createServer()`.
99-
100-
Note that this downgrades to TLS only when the [`server.proxy` option](#server-proxy) is also used.
101-
>>>>>>> c2de4078a5ac7fc014f5c5135f223e153799f0fe
95+
请注意,仅当同时使用 [`server.proxy` 选项](#server-proxy) 时,才会降级为 TLS。
10296

10397
需要一个合法可用的证书。对基本使用的配置需求来说,你可以添加 [@vitejs/plugin-basic-ssl](https://github.com/vitejs/vite-plugin-basic-ssl) 到项目插件中,它会自动创建和缓存一个自签名的证书。但我们推荐你创建和使用你自己的证书。
10498

0 commit comments

Comments
 (0)