diff --git a/src/utils/checkEnvVariables.js b/src/utils/checkEnvVariables.js deleted file mode 100644 index de5a6d2..0000000 --- a/src/utils/checkEnvVariables.js +++ /dev/null @@ -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.'); - } -} diff --git a/src/utils/checks/checkEnvVariables.js b/src/utils/checks/checkEnvVariables.js new file mode 100644 index 0000000..411d138 --- /dev/null +++ b/src/utils/checks/checkEnvVariables.js @@ -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.'); + } +} diff --git a/src/utils/checkInputPath.js b/src/utils/checks/checkInputPath.js similarity index 100% rename from src/utils/checkInputPath.js rename to src/utils/checks/checkInputPath.js