python-proxy-scraper-client
Version:
A TypeScript client for interacting with a Python proxy scraper service
12 lines (11 loc) • 341 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BACKEND_URL = void 0;
const getOrThrowEnv = (key) => {
const value = process.env[key];
if (!value) {
throw new Error(`Environment variable ${key} is not set.`);
}
return value;
};
exports.BACKEND_URL = getOrThrowEnv("BACKEND_URL");
;