how to enable SSL in local vuepress #1453
-
hi, dear vuepress-next team https://stackoverflow.com/questions/62977236/vuepress-how-can-i-use-https-in-dev-server |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
hi @Mister-Hope |
Beta Was this translation helpful? Give feedback.
-
We do not offer support for unnormal usage. VuePress is a statIc site generator, Which means you should build the project and use the output files for production |
Beta Was this translation helpful? Give feedback.
-
You can check vite's docs. VuePress dev server is based on it. |
Beta Was this translation helpful? Give feedback.
thanks a lot~
by adding this in
config.js
,it works我在之前错误的使用单独的
vite.config.js
应该参照这个 使用
viteOptions
https://v2.vuepress.vuejs.org/reference/bundler/vite.html#options
vite enable ssl refer to this
https://stackoverflow.com/questions/69417788/vite-https-on-localhost