mirror of
https://github.com/sussy-code/providers.git
synced 2026-01-11 20:10:17 +00:00
throw error if missing MOVIE_WEB_TMDB_API_KEY
This commit is contained in:
parent
6f29b636ea
commit
7804b3bf91
1 changed files with 4 additions and 0 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue