Skip to content

Commit 139e693

Browse files
committed
fixed prepareURLs
1 parent 64933b2 commit 139e693

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/@vue/cli-service/lib/util/prepareURLs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ module.exports = function prepareUrls (protocol, host, port, pathname = '/') {
1717
protocol,
1818
hostname,
1919
port,
20-
pathname
20+
pathname: pathname === 'auto' ? '' : pathname
2121
})
2222
const prettyPrintUrl = hostname =>
2323
url.format({
2424
protocol,
2525
hostname,
2626
port: chalk.bold(port),
27-
pathname
27+
pathname: pathname === 'auto' ? '' : pathname
2828
})
2929

3030
const isUnspecifiedHost = host === '0.0.0.0' || host === '::'

0 commit comments

Comments
 (0)