Skip to content

Commit 4c2ec7c

Browse files
author
zhisai.szs
committed
fix: doc devUrl
1 parent fe2136b commit 4c2ec7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/built-in-plugins/command-docs/plugin/dev-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export async function devDocs() {
4545
publicPath: `${pri.sourceConfig.useHttps ? 'https' : 'http'}://${pri.sourceConfig.host}:${freePort}`,
4646
autoOpenBrowser: true,
4747
hot: pri.sourceConfig.hotReload,
48-
devUrl: pri.sourceConfig.host,
48+
devUrl: pri.sourceConfig.devUrl || pri.sourceConfig.host,
4949
entryPath: docsEntryPath,
5050
devServerPort: freePort,
5151
htmlTemplatePath: path.join(__dirname, '../../../../template-project.ejs'),

0 commit comments

Comments
 (0)