-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(timer40k): add early release date
- Loading branch information
1 parent
a09b10e
commit e4d5fd8
Showing
5 changed files
with
59 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
// eslint-disable-next-line unicorn/prevent-abbreviations | ||
import { z } from 'zod'; | ||
|
||
const envSchema = z.object({ | ||
const environmentSchema = z.object({ | ||
TIMER_40K_RELEASE_DATE: z.string(), | ||
TIMER_40K_GAME_NAME: z.string(), | ||
TIMER_40K_EARLY_RELEASE_DATE: z.string().optional(), | ||
}); | ||
|
||
export type EnvType = z.infer<typeof envSchema>; | ||
export const env = envSchema.parse({ | ||
// eslint-disable-next-line unicorn/prevent-abbreviations | ||
export type EnvType = z.infer<typeof environmentSchema>; | ||
// eslint-disable-next-line unicorn/prevent-abbreviations | ||
export const env = environmentSchema.parse({ | ||
TIMER_40K_RELEASE_DATE: process.env.TIMER_40K_RELEASE_DATE, | ||
TIMER_40K_EARLY_RELEASE_DATE: process.env.TIMER_40K_EARLY_RELEASE_DATE, | ||
TIMER_40K_GAME_NAME: process.env.TIMER_40K_GAME_NAME, | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.