Adjust frontend build script to allow aggressive caching
This commit is contained in:
@ -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,
|
||||
}
|
||||
}
|
||||
|
@ -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();
|
||||
|
Reference in New Issue
Block a user