Skip to content

Commit

Permalink
fix(cli-service): 修复首次启动并访问出现 404 错误问题
Browse files Browse the repository at this point in the history
  • Loading branch information
muxiangqiu committed Mar 18, 2024
1 parent 9b271d4 commit c06c1a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change

## 2.55.4

- fix(cli-service): 修复首次启动并访问出现 404 错误问题

## 2.55.3

- fix(cli-service + web): 修复 @PostConstruct 方法在开发方式启动会执行两次问题
Expand Down
2 changes: 1 addition & 1 deletion dev-packages/cli-service/src/hooks/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ export default async (ctx: CliContext) => {
context.compiler = compiler;
context.entryContextProvider = entryContextProvider;
compiler.hooks.done.tap('ServeAfter', async stats => {
new HookExecutor().executeServeHooks(context, HookStage.after);
context.stats = stats;
new HookExecutor().executeServeHooks(context, HookStage.after);
await CommandUtil.executeCommand(context, CommandType.ServeCommand, CommandStage.after);
});
});
Expand Down

0 comments on commit c06c1a0

Please sign in to comment.