We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e538ac1 commit 7f11a7aCopy full SHA for 7f11a7a
api/src/server.ts
@@ -111,17 +111,17 @@ export async function serve(
111
112
// Start
113
server.listen({ port: apiPort })
114
- server.ready(() => {
+ server.addHook('onReady', (done) => {
115
logger.info('Studio is up and running!')
116
- logger.info(
117
- `To access the Studio, visit ${chalk.green(
118
- `http://localhost:${webPort}`
119
- )}`
120
- )
+
+ const prettyUrl = chalk.green(`http://localhost:${webPort}`)
+ logger.info(`To access the Studio, visit ${prettyUrl}`)
121
122
if (autoOpen) {
123
open(`http://localhost:${webPort}`)
124
}
+ done()
125
})
126
127
// Cleanup (async will not be resolved!)
0 commit comments