Skip to content

Commit

Permalink
fix(core): fix writeSearchIndex function use userConfig instead modif…
Browse files Browse the repository at this point in the history
…iedConfig (#1376)
  • Loading branch information
liuwenzhuang authored Sep 2, 2024
1 parent 976b4f4 commit 6a7688e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/node/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export async function dev(options: DevOptions): Promise<ServerInstance> {
const isProd = false;
const pluginDriver = new PluginDriver(config, isProd);
await pluginDriver.init();
const modifiedConfig = await pluginDriver.modifyConfig();

try {
const modifiedConfig = await pluginDriver.modifyConfig();
await pluginDriver.beforeBuild();

// empty temp dir before build
Expand All @@ -44,6 +44,6 @@ export async function dev(options: DevOptions): Promise<ServerInstance> {

return server;
} finally {
await writeSearchIndex(config);
await writeSearchIndex(modifiedConfig);
}
}

0 comments on commit 6a7688e

Please sign in to comment.