File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/spotlight/src/server Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @spotlightjs/spotlight " : patch
3+ ---
4+
5+ Instead of calling a function, we are now using the param value for the port on which the server is running
Original file line number Diff line number Diff line change @@ -103,11 +103,10 @@ export async function startServer(options: StartServerOptions): Promise<Server>
103103 fetch : app . fetch ,
104104 port,
105105 } ,
106- ( ) => {
107- const realPort = ( server . address ( ) as AddressInfo ) . port ;
108- logger . info ( `Spotlight listening on ${ realPort } ` ) ;
106+ info => {
107+ logger . info ( `Spotlight listening on ${ info . port } ` ) ;
109108 if ( basePath ) {
110- logSpotlightUrl ( realPort ) ;
109+ logSpotlightUrl ( info . port ) ;
111110 }
112111 resolve ( server as Server ) ;
113112 } ,
You can’t perform that action at this time.
0 commit comments