Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #1
11 lines
296 B
TypeScript
11 lines
296 B
TypeScript
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)
|