This repository was archived by the owner on Jul 19, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 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) {
177177
178178function startServer ( ) {
179179 const server = connect ( ) . use ( sirv ( './client/dist' ) ) . listen ( port )
180- console . info ( `\n\nServer started at` , colors . blue ( `http://localhost: ${ port } ` ) )
180+ printPort ( port )
181181 process . on ( 'SIGTERM' , ( ) => server . close ( ) )
182182 return server
183183}
@@ -338,3 +338,14 @@ function compute(array) {
338338function round ( n ) {
339339 return + n . toFixed ( 2 )
340340}
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 55 "license" : " MIT" ,
66 "type" : " module" ,
77 "scripts" : {
8+ "dev" : " pnpm start --noHeadless --skipBench --vdom" ,
89 "start" : " node index.js"
910 },
1011 "dependencies" : {
You can’t perform that action at this time.
0 commit comments