This repository has been archived on 2026-07-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
aniwatch-api/src/config/env.ts
T
2023-08-07 14:46:56 +05:30

19 lines
382 B
TypeScript

import { cleanEnv, port, str } from "envalid";
import { config } from "dotenv";
config();
const env = cleanEnv(process.env, {
PORT: port(),
APP_SRC_USER_AGENT: str(),
APP_SRC_ACCEPT_HEADER: str(),
APP_SRC_ACCEPT_ENCODING_HEADER: str(),
APP_SRC_BASE_URL: str(),
APP_SRC_AJAX_URL: str(),
APP_SRC_HOME_URL: str(),
APP_SRC_SEARCH_URL: str(),
});
export default env;