update config, fix s3 region

This commit is contained in:
Evan
2025-03-05 13:50:32 -08:00
parent 1a0729a427
commit 303180f51f
3 changed files with 6 additions and 5 deletions
+1 -3
View File
@@ -22,9 +22,7 @@ import { pastelTheme } from "./PastelTheme";
import { pastelThemeDark } from "./PastelThemeDark";
export abstract class DefaultServerConfig implements ServerConfig {
numWorkers(): number {
return 6;
}
abstract numWorkers(): number;
abstract env(): GameEnv;
abstract discordRedirectURI(): string;
turnIntervalMs(): number {
+3
View File
@@ -2,6 +2,9 @@ import { GameEnv } from "./Config";
import { DefaultConfig, DefaultServerConfig } from "./DefaultConfig";
export const prodConfig = new (class extends DefaultServerConfig {
numWorkers(): number {
return 6;
}
env(): GameEnv {
return GameEnv.Prod;
}
+2 -2
View File
@@ -2,8 +2,8 @@ import { GameRecord, GameID } from "../core/Schemas";
import { S3 } from "@aws-sdk/client-s3";
import { RedshiftData } from "@aws-sdk/client-redshift-data";
// Initialize AWS clients
const s3 = new S3();
const s3 = new S3({ region: "eu-west-1" });
const bucket = "openfront-games";
const redshiftData = new RedshiftData({ region: "eu-west-1" });