Skip to content

Commit

Permalink
feat: show server url by pressing u (#11319)
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed Dec 12, 2022
1 parent 29abeea commit 8c0bb7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/vite/src/node/shortcuts.ts
Expand Up @@ -90,6 +90,14 @@ const BASE_SHORTCUTS: CLIShortcut[] = [
await server.restart()
},
},
{
key: 'u',
description: 'show server url',
action(server) {
server.config.logger.info('')
server.printUrls()
},
},
{
key: 'o',
description: 'open in browser',
Expand Down

0 comments on commit 8c0bb7b

Please sign in to comment.