MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / readCore

Function readCore

apps/api/src/config/env/validate.ts:130–135  ·  view source on GitHub ↗
(source: EnvSource)

Source from the content-addressed store, hash-verified

128 */
129
130const readCore = (source: EnvSource) => ({
131 NODE_ENV: source.NODE_ENV ?? "development",
132 PORT: toInt(source.PORT, 7330, "PORT"),
133 LOG_LEVEL: source.LOG_LEVEL ?? "info",
134 APP_NAME: source.APP_NAME ?? "API Template",
135});
136
137const readDatabase = (source: EnvSource) => ({
138 DATABASE_URL: nonEmpty(

Callers 1

readRawFunction · 0.85

Calls 1

toIntFunction · 0.85

Tested by

no test coverage detected