mirror of
https://github.com/movie-web/providers.git
synced 2025-09-13 14:53:24 +00:00
Refactored dev-cli
This commit is contained in:
12
src/dev-cli/config.ts
Normal file
12
src/dev-cli/config.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
export function getConfig() {
|
||||
let tmdbApiKey = process.env.MOVIE_WEB_TMDB_API_KEY ?? '';
|
||||
tmdbApiKey = tmdbApiKey.trim();
|
||||
|
||||
if (!tmdbApiKey) {
|
||||
throw new Error('Missing MOVIE_WEB_TMDB_API_KEY environment variable');
|
||||
}
|
||||
|
||||
return {
|
||||
tmdbApiKey,
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user