mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 13:43:25 +00:00
throw error if missing MOVIE_WEB_TMDB_API_KEY
This commit is contained in:
@@ -38,6 +38,10 @@ type CommandLineArguments = {
|
||||
|
||||
const TMDB_API_KEY = process.env.MOVIE_WEB_TMDB_API_KEY;
|
||||
|
||||
if (!TMDB_API_KEY?.trim()) {
|
||||
throw new Error('Missing MOVIE_WEB_TMDB_API_KEY environment variable');
|
||||
}
|
||||
|
||||
const sources = getAllSources();
|
||||
|
||||
function getAllSources() {
|
||||
|
Reference in New Issue
Block a user