Skip to content

Commit

Permalink
fix: server restart config load issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Waleed-KH committed Mar 25, 2024
1 parent fe7d974 commit 4864c1c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/node/plugin.ts
Expand Up @@ -382,7 +382,12 @@ export async function createVitePressPlugin(
)

try {
await resolveUserConfig(siteConfig.root, 'serve', 'development')
await resolveUserConfig(
siteConfig.root,
'serve',
'development',
configPath ? path.relative(process.cwd(), configPath) : configPath
)
} catch (err: any) {
return
}
Expand Down
1 change: 0 additions & 1 deletion src/node/server.ts
Expand Up @@ -13,7 +13,6 @@ export async function createServer(
'development',
serverOptions.configFile
)
delete serverOptions.configFile

if (serverOptions.base) {
config.site.base = serverOptions.base
Expand Down

0 comments on commit 4864c1c

Please sign in to comment.