This commit is contained in:
Julien Valverdé
2025-09-12 00:26:32 +02:00
parent 908e7d712c
commit c0df42c9a9
7 changed files with 53 additions and 2 deletions

View File

@@ -0,0 +1,10 @@
import { Config, Schema } from "effect"
export const mode = Schema.Config("NODE_ENV",
Schema.compose(Schema.String, Schema.Literal("development", "production"))
).pipe(
Config.withDefault("development")
)
export const httpPort = Config.withDefault(Config.port("SERVER_HTTP_PORT"), 80)

View File

@@ -0,0 +1 @@
export * as ServerConfig from "./ServerConfig"