Adjust frontend build script to allow aggressive caching

This commit is contained in:
Fabian Stamm
2023-04-14 15:43:08 +02:00
parent b68fa6f223
commit cc1696a429
7 changed files with 66 additions and 14 deletions

View File

@ -18,7 +18,7 @@ export default class AccountService extends Server.AccountService<SessionContext
id: ctx.user.uid,
username: ctx.user.username,
name: ctx.user.name,
birthday: ctx.user.birthday.valueOf(),
birthday: ctx.user.birthday?.valueOf(),
gender: ctx.user.gender as number as Gender,
}
}

View File

@ -26,6 +26,7 @@ export default class Web {
constructor(config: WebConfig) {
this.server = express();
this.server.set("trust proxy", 1);
this.port = Number(config.port);
this.registerMiddleware();
this.registerUserSession();