We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f56064 commit b95da7fCopy full SHA for b95da7f
1 file changed
src/config.ts
@@ -41,10 +41,10 @@ export const writtenBufferChunkSize = Buffer.poolSize || 2048;
41
export const host: string = process.env.SERVER_INFO || "unknown";
42
43
/** Runtime mode. */
44
-export const mode: string = process.env.NODE_ENV || "development";
+export const mode: string = process.env.NODE_ENV || "production";
45
46
/** How long the countdown should last until the game is started. By default it is 10 seconds. Set to 0 if you wish to disable this. */
47
-export const countdownTicks = 10 * tps;
+export const countdownTicks = (mode === "development" ? 0 : 10) * tps;
48
49
/** Is hosting a rest api */
50
export const enableApi: boolean = true;
0 commit comments