From ed56fecd0cefab771e6f12f8650616e850b5eea3 Mon Sep 17 00:00:00 2001 From: Kalidou Diagne Date: Thu, 7 Mar 2024 02:57:31 +0100 Subject: [PATCH] vercel env fix --- common/discord.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/discord.js b/common/discord.js index 67cf404c..fda42d03 100644 --- a/common/discord.js +++ b/common/discord.js @@ -4,9 +4,9 @@ const { REST } = require("@discordjs/rest") config() -const TOKEN = process.env.DISCORD_TOKEN +const TOKEN = process.env.DISCORD_TOKEN || process.env.NEXT_PUBLIC_DISCORD_TOKEN const MESSAGES_LIMIT = 1 // Number of messages to retrieve from the discord channel -const GUILD_ID = process.env.DISCORD_GUILD_ID +const GUILD_ID = process.env.DISCORD_GUILD_ID || process.env.NEXT_PUBLIC_DISCORD_GUILD_ID const client = new Client({ intents: ["Guilds", "GuildMessages", "MessageContent"],