Hey there, With the self hosted option I believe ...
# general
s
Hey there, With the self hosted option I believe there is an issue with the outlook app. When I populate the .env.appstore with my graph client ID and graph client secret, it seems to not detect them and it never upserts the app
Copy code
@calcom/prisma:build: No pending migrations to apply.
@calcom/prisma:build: $ ts-node --transpile-only ./seed-app-store.ts
@calcom/prisma:build: 📲 Upserted app: 'apple-calendar'
@calcom/prisma:build: 📲 Upserted app: 'caldav-calendar'
@calcom/prisma:build: Error adding google credentials to DB: Cannot destructure property 'client_secret' of 'JSON.parse(...).web' as it is undefined.
@calcom/prisma:build: 📲 Upserted app: 'jitsi'
@calcom/prisma:build: 📲 Upserted app: 'wipe-my-cal'
@calcom/prisma:build: 📲 Upserted app: 'space-booking'
@calcom/prisma:build: 📲 Upserted app: 'huddle01'
@calcom/prisma:build: 📲 Upserted app: 'metamask'
@calcom/prisma:build: 📲 Upserted app: 'stripe'
Notice there is no outlook option in there. Is this a known issue?
I believe this problem is occurring because the env values are not being properly passed to the submodules and the if statement on cal.com/packages/prisma/seed-app-store.ts Line 48 in 4987598 if (process.env.MS_GRAPH_CLIENT_ID && process.env.MS_GRAPH_CLIENT_SECRET) { is failing because it thinks the client and graph ID are set to NULLI was able to temporarily fix this issue by changing the if statement to if(true) and hardcoding the client id and secret for the outlook integration
z
This is only needed once to get those keys in your DB tho
s
Yeah, it just feels like it could be a symptom of a greater issue where some environment variables aren't getting passed properly