diff --git a/packages/integrations/node/src/preview.ts b/packages/integrations/node/src/preview.ts index e425f2640..9833115d9 100644 --- a/packages/integrations/node/src/preview.ts +++ b/packages/integrations/node/src/preview.ts @@ -59,7 +59,6 @@ const preview: CreatePreviewServer = async function ({ return pathname; } - const server = createServer( { client, @@ -70,17 +69,15 @@ const preview: CreatePreviewServer = async function ({ handler ); const address = getNetworkAddress('http', host!, port) - - if(host === undefined ){ + + if (host === undefined) { // eslint-disable-next-line no-console - console.log( - `Preview server listening on \n local: ${address.local[0]} \t\n network: ${address.network[0]} - ` ); - }else{ + console.log(`Preview server listening on \n local: ${address.local[0]} \t\n network: ${address.network[0]}\n`); + } else { // eslint-disable-next-line no-console console.log(`Preview server listening on ${address.local[0]}`); } - + return server; };