Spaces:
Runtime error
Runtime error
Download server/dist/env.js from Nryn215/FreeLLMAPI: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/Nryn215/FreeLLMAPI/resolve/main/server/dist/env.js
- Command line
-
hf download hf://spaces/Nryn215/FreeLLMAPI/server/dist/env.js
-
curl -L -o env.js https://huggingface.co/spaces/Nryn215/FreeLLMAPI/resolve/main/server/dist/env.js
482 Bytes
| import dotenv from 'dotenv'; | |
| import path from 'path'; | |
| import { fileURLToPath } from 'url'; | |
| const __dirname = path.dirname(fileURLToPath(import.meta.url)); | |
| // FREEAPI_ENV_PATH lets embedders (e.g. the desktop app, where __dirname sits | |
| // inside a bundle) point at an explicit .env — or at nothing: dotenv silently | |
| // no-ops on a missing file either way. | |
| dotenv.config({ path: process.env.FREEAPI_ENV_PATH ?? path.resolve(__dirname, '../../.env') }); | |
| //# sourceMappingURL=env.js.map |