Skip to content

Commit

Permalink
Merge pull request #149 from privacy-scaling-explorations/vercel-env-…
Browse files Browse the repository at this point in the history
…namings

vercel env fix
  • Loading branch information
AtHeartEngineer authored Mar 7, 2024
2 parents d7cf70e + ed56fec commit ad3c27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/discord.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down

0 comments on commit ad3c27b

Please sign in to comment.