Skip to content

Commit fe85053

Browse files
Add SEASON env var (#173)
* feat: update season configuration in environment and code
1 parent 1bf6b4b commit fe85053

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ POSTGRES_PASSWORD=your-postgres-password
66
POSTGRES_DB=your-postgres-database
77
POSTGRES_HOST=your-postgres-host
88
POSTGRES_PORT=your-postgres-port
9-
RANK_ENABLED=false
9+
RANK_ENABLED=false
10+
SEASON=5

src/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export const config = {
1919
ranking: {
2020
enabled: process.env.RANK_ENABLED === "true",
2121
},
22-
season: 4,
22+
season: Number(process.env.SEASON),
2323
};

0 commit comments

Comments
 (0)