Skip to content

Commit 8c0bb7b

Browse files
authored
feat: show server url by pressing u (#11319)
1 parent 29abeea commit 8c0bb7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/vite/src/node/shortcuts.ts

+8
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ const BASE_SHORTCUTS: CLIShortcut[] = [
9090
await server.restart()
9191
},
9292
},
93+
{
94+
key: 'u',
95+
description: 'show server url',
96+
action(server) {
97+
server.config.logger.info('')
98+
server.printUrls()
99+
},
100+
},
93101
{
94102
key: 'o',
95103
description: 'open in browser',

0 commit comments

Comments
 (0)