chore: fix startup of backend

This commit is contained in:
2026-08-26 10:47:10 +02:00
parent 94906c3499
commit 4c5e1a864b
3 changed files with 65 additions and 53 deletions
+7
View File
@@ -4,6 +4,8 @@ import fs from 'fs';
import jwt from 'jsonwebtoken';
import path from 'path';
const run = () => {
const app = express();
app.use( expressSession( {
@@ -52,3 +54,8 @@ app.use( ( _request: express.Request, response: express.Response ) => {
const PORT = process.env.PORT || 8080;
app.listen( PORT );
};
export default {
run
};
+1 -1
View File
@@ -44,7 +44,7 @@ const configure = ( location: 'stderr' | 'file', minLevel: LogLevel, file?: stri
throw new Error( 'File parameter required when location is "file"' );
}
loc = location === 'stderr' ? 'stderr' : file;
loc = location === 'stderr' ? 'stderr' : ( file ?? 'musicplayer.log' );
lev = levels.indexOf( minLevel );
};
+7 -2
View File
@@ -1,13 +1,18 @@
{
"compilerOptions": {
"outDir": "./dist",
"rootDir": "./src",
"allowJs": true,
"target": "ES6",
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"types": ["node"],
"types": [
"node"
],
"module": "NodeNext",
"moduleResolution": "NodeNext"
},
"include": [ "./src/**/*" ],
"include": [
"./src/**/*"
]
}