(source: EnvSource)
| 128 | */ |
| 129 | |
| 130 | const 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 | |
| 137 | const readDatabase = (source: EnvSource) => ({ |
| 138 | DATABASE_URL: nonEmpty( |