We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent 8517645 commit 6f1c55eCopy full SHA for 6f1c55e
packages/vite/src/node/shortcuts.ts
@@ -147,7 +147,7 @@ const BASE_PREVIEW_SHORTCUTS: CLIShortcut<PreviewServer>[] = [
147
key: 'o',
148
description: 'open in browser',
149
action(server) {
150
- const url = server.resolvedUrls.local[0]
+ const url = server.resolvedUrls.local[0] ?? server.resolvedUrls.network[0]
151
openBrowser(url, true, server.config.logger)
152
},
153
0 commit comments