Initial version (#1)
Co-authored-by: Julien Valverdé <julien.valverde@mailo.com> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
10
packages/server/src/config/ServerConfig.ts
Normal file
10
packages/server/src/config/ServerConfig.ts
Normal 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)
|
||||
Reference in New Issue
Block a user