1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00

format with prettier

This commit is contained in:
zumbiepig
2024-09-07 08:25:55 -07:00
parent 2e13b84623
commit 91632214f1
42 changed files with 912 additions and 512 deletions

View File

@@ -28,7 +28,7 @@ debugLogger('Booting server.');
app.use(
helmet({
contentSecurityPolicy: false,
})
}),
);
app.use(morgan(isDev ? 'dev' : 'combined'));
@@ -64,7 +64,9 @@ app
})
.on('error', (error) => {
if (error.code === 'EADDRINUSE') {
console.error(chalk.red('EADDRINUSE') + chalk.gray(': ') + chalk.bold(`Failed to start server. Is port ${PORT} in use?`));
console.error(
chalk.red('EADDRINUSE') + chalk.gray(': ') + chalk.bold(`Failed to start server. Is port ${PORT} in use?`),
);
process.exit(1);
}
});