refactor: move setup checks to a separate folder for enhanced directory structure

This commit is contained in:
xtrullor73
2024-05-25 00:47:56 -07:00
parent 8d1a27285f
commit 156053065a
3 changed files with 11 additions and 5 deletions

View File

@@ -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.');
}
}

View 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.');
}
}