1
0
mirror of https://github.com/zumbiepig/MineXLauncher.git synced 2025-06-26 10:05:10 +00:00
This commit is contained in:
zumbiepig
2024-09-07 16:10:28 -07:00
parent c57b96c48f
commit 4f9516087b
41 changed files with 941 additions and 285 deletions

View File

@@ -41,7 +41,11 @@ app.use(compression());
if (isDev) app.use(errorhandler());
app.use(serveFavicon(join(BASE_DIR, 'resources/images/icons/favicon.webp'), { maxAge: 86400 }));
app.use(
serveFavicon(join(BASE_DIR, 'resources/images/icons/favicon.webp'), {
maxAge: 86400,
}),
);
app.use(serveStatic(BASE_DIR));
app.use('/', indexRouter);
@@ -65,7 +69,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?`),
chalk.red('EADDRINUSE') +
chalk.gray(': ') +
chalk.bold(`Failed to start server. Is port ${PORT} in use?`),
);
process.exit(1);
}