File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,7 @@ async function buildApp(isVapor) {
177
177
178
178
function startServer ( ) {
179
179
const server = connect ( ) . use ( sirv ( './client/dist' ) ) . listen ( port )
180
- console . info ( `\n\nServer started at` , colors . blue ( `http://localhost: ${ port } ` ) )
180
+ printPort ( port )
181
181
process . on ( 'SIGTERM' , ( ) => server . close ( ) )
182
182
return server
183
183
}
@@ -338,3 +338,14 @@ function compute(array) {
338
338
function round ( n ) {
339
339
return + n . toFixed ( 2 )
340
340
}
341
+
342
+ /** @param {number } port */
343
+ function printPort ( port ) {
344
+ const vaporLink = ! noVapor
345
+ ? `\nVapor: ${ colors . blue ( `http://localhost:${ port } /vapor` ) } `
346
+ : ''
347
+ const vdomLink = vdom
348
+ ? `\nvDom: ${ colors . blue ( `http://localhost:${ port } /vdom` ) } `
349
+ : ''
350
+ console . info ( `\n\nServer started at` , vaporLink , vdomLink )
351
+ }
Original file line number Diff line number Diff line change 5
5
"license" : " MIT" ,
6
6
"type" : " module" ,
7
7
"scripts" : {
8
+ "dev" : " pnpm start --noHeadless --skipBench --vdom" ,
8
9
"start" : " node index.js"
9
10
},
10
11
"dependencies" : {
You can’t perform that action at this time.
0 commit comments