fix: server restart config load issue

pull/3290/head
Waleed Khaled 6 months ago
parent 550da4e6b5
commit b2a9eb6bfa

@ -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) {
siteConfig.logger.error(err)
return

@ -13,7 +13,6 @@ export async function createServer(
'development',
serverOptions.configFile
)
delete serverOptions.configFile
if (serverOptions.base) {
config.site.base = serverOptions.base

Loading…
Cancel
Save