mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
Seperate scraper code from index cli file
This commit is contained in:
@@ -6,7 +6,11 @@ export function getConfig() {
|
||||
throw new Error('Missing MOVIE_WEB_TMDB_API_KEY environment variable');
|
||||
}
|
||||
|
||||
let proxyUrl: undefined | string = process.env.MOVIE_WEB_PROXY_URL;
|
||||
proxyUrl = !proxyUrl ? undefined : proxyUrl;
|
||||
|
||||
return {
|
||||
tmdbApiKey,
|
||||
proxyUrl,
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user