Download server/src/env.ts from tayyabimam/My-Free-LLM-API: direct link, hf CLI and curl.
- Browser
- Download file 221 Bytes
-
https://huggingface.co/spaces/tayyabimam/My-Free-LLM-API/resolve/main/server/src/env.ts
- Command line
-
hf download hf://spaces/tayyabimam/My-Free-LLM-API/server/src/env.ts
-
curl -L -o env.ts https://huggingface.co/spaces/tayyabimam/My-Free-LLM-API/resolve/main/server/src/env.ts
221 Bytes
| import dotenv from 'dotenv'; | |
| import path from 'path'; | |
| import { fileURLToPath } from 'url'; | |
| const __dirname = path.dirname(fileURLToPath(import.meta.url)); | |
| dotenv.config({ path: path.resolve(__dirname, '../../.env') }); | |