Download superlog/apps/api/src/env.ts from smlflg/Experimente: direct link, hf CLI and curl.
- Browser
- Download file 352 Bytes
-
https://huggingface.co/smlflg/Experimente/resolve/main/superlog/apps/api/src/env.ts
- Command line
-
hf download hf://smlflg/Experimente/superlog/apps/api/src/env.ts
-
curl -L -o env.ts https://huggingface.co/smlflg/Experimente/resolve/main/superlog/apps/api/src/env.ts
352 Bytes
| import { config as loadDotenv } from "dotenv"; | |
| const portlessPort = process.env.PORTLESS_URL ? process.env.PORT : undefined; | |
| loadDotenv(); | |
| loadDotenv({ path: ".env.local", override: true }); | |
| if (process.env.SUPERLOG_ENV_FILE) { | |
| loadDotenv({ path: process.env.SUPERLOG_ENV_FILE, override: true }); | |
| } | |
| if (portlessPort) process.env.PORT = portlessPort; | |