chore: format

This commit is contained in:
Nate Moore 2023-08-10 13:26:46 -04:00
parent 6b0e3b22f5
commit 1244e6fee1

View file

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