You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ In addition, Vite is highly extensible via its [Plugin API](https://vitejs.dev/g
35
35
36
36
## v3.0
37
37
38
-
Current Status: **Alpha** (for internal testing, not recommended for production)
38
+
Current Status: **Beta** (for internal testing, not recommended for production)
39
39
40
40
The `main` branch is now for v3.0, if you are looking for current stable releases, check the [`v2` branch](https://github.com/vitejs/vite/tree/v2) branch instead.
Copy file name to clipboardExpand all lines: docs/config/server-options.md
+2
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,8 @@ Enable TLS + HTTP/2. Note this downgrades to TLS only when the [`server.proxy` o
55
55
56
56
The value can also be an [options object](https://nodejs.org/api/https.html#https_https_createserver_options_requestlistener) passed to `https.createServer()`.
57
57
58
+
A valid certificate is needed. For a basic setup, you can add [@vitejs/plugin-basic-ssl](https://github.com/vitejs/vite-plugin-basic-ssl) to the project plugins, which will automatically create and cache a self-signed certificate. But we recommend creating your own certificates.
Copy file name to clipboardExpand all lines: docs/guide/migration.md
+13
Original file line number
Diff line number
Diff line change
@@ -87,6 +87,19 @@ You can use `?init` which is similar to the previous behavior.
87
87
})
88
88
```
89
89
90
+
### Automatic https certificate generation
91
+
92
+
A valid certificate is needed when using `https`. In Vite v2, if no certificate was configured, a self-signed certificate was automatically created and cached.
93
+
Since Vite v3, we recommend manually creating your certificates. If you still want to use the automatic generation from v2, this feature can be enabled back by adding [@vitejs/plugin-basic-ssl](https://github.com/vitejs/vite-plugin-basic-ssl) to the project plugins.
0 commit comments