Add domain, subdomain to GameRecord (#1370)

## Description:

Add domain, subdomain to GameRecord.

## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory
- [x] I confirm I have thoroughly tested these changes and take full
responsibility for any bugs introduced
- [x] I understand that submitting code with bugs that could have been
caught through manual testing blocks releases and new features for all
contributors

Co-authored-by: evanpelle <evanpelle@gmail.com>
This commit is contained in:
Scott Anderson
2025-07-08 15:45:27 -04:00
committed by GitHub
parent 7b7cdfe19c
commit d18908bb68
9 changed files with 16 additions and 13 deletions
+3 -1
View File
@@ -47,11 +47,13 @@ export async function archive(gameRecord: GameRecord) {
async function archiveAnalyticsToR2(gameRecord: GameRecord) {
// Create analytics data object
const { info, version, gitCommit } = gameRecord;
const { info, version, gitCommit, subdomain, domain } = gameRecord;
const analyticsData: AnalyticsRecord = {
info,
version,
gitCommit,
subdomain,
domain,
};
try {
+1
View File
@@ -628,6 +628,7 @@ export class GameServer {
this._startTime ?? 0,
Date.now(),
this.winner?.winner,
this.config,
),
);
}