Docker compose file

This commit is contained in:
Julien Valverdé
2024-07-16 03:55:34 +02:00
parent 0be4e0d8ce
commit af2329105d
2 changed files with 34 additions and 1 deletions

View File

@@ -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"),
)