Docker compose file
This commit is contained in:
@@ -5,11 +5,11 @@ import { Config } from "effect"
|
||||
export module ServerConfig {
|
||||
export const mode = Config.string("NODE_ENV").pipe(
|
||||
Config.validate({
|
||||
message: "Expected 'development' or 'production'",
|
||||
validation: S.is(S.Union(
|
||||
S.Literal("development"),
|
||||
S.Literal("production"),
|
||||
)),
|
||||
message: "Expected 'development' or 'production'",
|
||||
}),
|
||||
Config.withDefault("development"),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user