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;
|
||||
}
|
||||
|
||||
|
||||
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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue