Skip to content

how to enable SSL in local vuepress #1453

Answered by darkSheep404
darkSheep404 asked this question in Q&A
Discussion options

You must be logged in to vote

thanks a lot~
by adding this in config.js,it works

export default {
    bundler: viteBundler({
      viteOptions: {
        plugins: [
          basicSsl()
        ],
      },
      vuePluginOptions: {},
    }),

我在之前错误的使用单独的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

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@darkSheep404
Comment options

Answer selected by darkSheep404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants