I need some help for setting up ENV vars I'm new t...
# main
o
I need some help for setting up ENV vars I'm new to this and not getting what exactly to set for ENV vars. Maybe I'm doing something wrong. Can anyone help me with it ?
e
hey hey, happy to help. Which env vars are confusing?
o
NEXT_PUBLIC_DISCORD_CLIENT_ID= DISCORD_TOKEN= DISCORD_CLIENT_SECRET= NEXT_PUBLIC_DISCORD_CLIENT_ID_2= DISCORD_TOKEN_2= DISCORD_CLIENT_SECRET_2= Why does this mean Difference between first and second keys ?
Also not getting this CUSTOMER_IO_SITE_ID= CUSTOMER_IO_API_KEY=
Do we need to set all ENV variable ?? or we can skip the ones for sentry and other part which don't require for us right now ? @emil
e
looking at the codebase, we use them to communicate with discord. We use two bots e.g. to clean up integrations, one of them is used to authenticate. If you do not need to work on a discord integration locally then this setting is optional.
CUSTOMER_IO is a third party service that we use to track when new users or accounts are created. These env vars are also optional for local development
o
Okay
👍 1
For discord keys, Can I give same values to both ENV vars (1 & 2)
e
I haven't tried it, but should most likely work.
o
Okay, Cool
I've integrated with discord but the bot in discord showing offline.
And channels not got synced in my local linen
e
Can you please ensure that the bot has correct permissions in discord?
o
yes, checked that
e
Did you start the queue locally? We have a queue system that handles the integrations. You can see the code in
apps/web/queue/index.ts
185 Views