mirror of
https://github.com/xtrll/MusicMetaFinder.git
synced 2026-04-17 15:53:29 +02:00
refactor: move setup checks to a separate folder for enhanced directory structure
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
export default function checkEnvVariables() {
|
||||
if (!process.env.ACOUSTID_API_KEY) {
|
||||
throw new Error('Please set up ACOUSTID_API_KEY in your .env file.');
|
||||
}
|
||||
}
|
||||
11
src/utils/checks/checkEnvVariables.js
Normal file
11
src/utils/checks/checkEnvVariables.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// export default function checkEnvVariables() {
|
||||
// if (!process.env.ACOUSTID_API_KEY || !process.env.SPOTIFY_CLIENT_ID || !process.env.SPOTIFY_CLIENT_SECRET) {
|
||||
// throw new Error('Please set up ACOUSTID_API_KEY, SPOTIFY_CLIENT_ID, and SPOTIFY_CLIENT_SECRET in your .env file.');
|
||||
// }
|
||||
// }
|
||||
|
||||
export default function checkEnvVariables() {
|
||||
if (!process.env.ACOUSTID_API_KEY) {
|
||||
throw new Error('Please set up ACOUSTID_API_KEY in your .env file.');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user