Skip to content

Commit

Permalink
将app的配置,保存到running.json中。
Browse files Browse the repository at this point in the history
  • Loading branch information
wangliang181230 committed Apr 13, 2024
1 parent 355816f commit 6dd761e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/modules/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ const serverApi = {
}
serverConfig.plugin = allConfig.plugin

if (allConfig.proxy && allConfig.proxy.enabled) {
if (allConfig.proxy) {
serverConfig.proxy = allConfig.proxy
}

if (allConfig.app) {
serverConfig.app = allConfig.app
}

// fireStatus('ing') // 启动中
const basePath = serverConfig.setting.userBasePath
const runningConfigPath = path.join(basePath, '/running.json')
Expand Down

0 comments on commit 6dd761e

Please sign in to comment.