Front-end Node+Vue project, change the local 8080 port to https request

Modify the devServer configuration in the vue.config.js file

module.exports = {
    
    
    devServer: {
    
    
        port: 8080,     // 端口号
        https: true,  // 开启https访问
    }
};

Guess you like

Origin blog.csdn.net/qq_40896145/article/details/129672398