mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-12-24 13:38:10 +08:00
49 lines
1.1 KiB
JavaScript
49 lines
1.1 KiB
JavaScript
const path = require("path");
|
|
|
|
function resolve(dir) {
|
|
return path.join(__dirname, dir)
|
|
}
|
|
|
|
module.exports = {
|
|
outputDir: path.resolve(__dirname, '../../cmd/server/web/kubepi'),
|
|
productionSourceMap: true,
|
|
lintOnSave:false,
|
|
devServer: {
|
|
port: 4300,
|
|
open: true,
|
|
proxy: {
|
|
'/dashboard': {
|
|
target: 'http://0.0.0.0:4400',
|
|
},
|
|
'/kubepi/api': {
|
|
target: 'http://0.0.0.0:2019',
|
|
ws: true,
|
|
secure: false,
|
|
},
|
|
'/webkubectl': {
|
|
target: 'http://0.0.0.0:2019',
|
|
ws: true,
|
|
secure: false,
|
|
},
|
|
'/terminal': {
|
|
target: 'http://0.0.0.0:4200',
|
|
ws: true,
|
|
secure: false,
|
|
}
|
|
|
|
}
|
|
},
|
|
configureWebpack: {
|
|
devtool: 'source-map',
|
|
resolve: {
|
|
alias: {
|
|
'@': resolve('src')
|
|
},
|
|
fallback: {
|
|
path: require.resolve("path-browserify")
|
|
}
|
|
}
|
|
},
|
|
publicPath: '/kubepi/',
|
|
};
|