chore: format
This commit is contained in:
parent
6b0e3b22f5
commit
1244e6fee1
1 changed files with 5 additions and 8 deletions
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue