Skip to content

Commit

Permalink
dir ref needs to be a bit more magical
Browse files Browse the repository at this point in the history
  • Loading branch information
phyzical committed Aug 26, 2024
1 parent f66cd3b commit 029aea2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion util/constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import path from 'path';
import { fileURLToPath } from 'url';
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

export default {
AUTH: {
Expand Down Expand Up @@ -54,7 +57,7 @@ export default {
YOUTUBE_SEARCH: {
// this roughly equates to a max of 30mb
MAX_MINUTES: 15,
GENERIC_IMAGE: path.join(process.cwd(), "logo.png"),
GENERIC_IMAGE: path.join(__dirname, "logo.png"),
VALID_CONTEXTS: ['itemName', 'albumName', 'artistName'],
},
};

0 comments on commit 029aea2

Please sign in to comment.