This commit is contained in:
2025-05-06 15:02:30 +08:00
parent 2366161259
commit 8838142654
3 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -28,13 +28,13 @@ export default defineConfig({
}
},
server: {
// https: {
// cert: fs.readFileSync(path.join(__dirname, 'src/ssl/localhost+2.pem')),
// key: fs.readFileSync(path.join(__dirname, 'src/ssl/localhost+2-key.pem'))
// },
/* https: {
cert: fs.readFileSync(path.join(__dirname, 'src/ssl/localhost+2.pem')),
key: fs.readFileSync(path.join(__dirname, 'src/ssl/localhost+2-key.pem'))
},*/
proxy: {
'/api': {
target: 'http://192.168.41.118:9090',
target: 'http://192.168.41.126:9090',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}