Skip to content

Commit 6a7688e

Browse files
authored
fix(core): fix writeSearchIndex function use userConfig instead modifiedConfig (#1376)
1 parent 976b4f4 commit 6a7688e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/node/dev.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ export async function dev(options: DevOptions): Promise<ServerInstance> {
2020
const isProd = false;
2121
const pluginDriver = new PluginDriver(config, isProd);
2222
await pluginDriver.init();
23+
const modifiedConfig = await pluginDriver.modifyConfig();
2324

2425
try {
25-
const modifiedConfig = await pluginDriver.modifyConfig();
2626
await pluginDriver.beforeBuild();
2727

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

4545
return server;
4646
} finally {
47-
await writeSearchIndex(config);
47+
await writeSearchIndex(modifiedConfig);
4848
}
4949
}

0 commit comments

Comments
 (0)