diff --git a/nezha-fronted/build/webpack.prod.conf.js b/nezha-fronted/build/webpack.prod.conf.js index 1f159c4f3..e0f678577 100644 --- a/nezha-fronted/build/webpack.prod.conf.js +++ b/nezha-fronted/build/webpack.prod.conf.js @@ -23,6 +23,7 @@ const serverConfig = require('../static/config.json')// 引入根目录下的配 // const gitRevisionPlugin = new GitRevisionPlugin(); const createJson = function () { // serverConfig.version=config.build.version +"-"+gitRevisionPlugin.commithash(); + serverConfig.baseUrl = '/' serverConfig.version = config.build.version return JSON.stringify(serverConfig) } diff --git a/nezha-fronted/static/config.json b/nezha-fronted/static/config.json index 8d1eeae25..b9b43a208 100644 --- a/nezha-fronted/static/config.json +++ b/nezha-fronted/static/config.json @@ -1 +1 @@ -{"baseUrl":"/", "version": "22.05"} +{"baseUrl":"http://192.168.40.42/", "version": "22.05"}