Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const envSchema = z.object({
SLACK_TEAM_ID: z.string().optional(),
SLACK_CHECK_WITH_TECH_CHANNEL: slackEnvType,
SLACK_USER_FEEDBACK_CHANNEL: slackEnvType.default("#dev-calendar"),
SLACK_DISABLE_SOCKET_MODE: z.enum(["true", "false"]).default("false"), // Used to disable socket mode in dev since it shares an app with prod
DEV_SSL: z.string().optional(), // Used to decide whether or not to use https in a dev environment
SENTRY_PROJECT_ID: z.string().optional(),
COOKIE_DOMAIN: z
Expand Down
2 changes: 1 addition & 1 deletion lib/slack/slackApiConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function slackApiConnection() {
global.slack = new App({
token: env.SLACK_BOT_TOKEN,
signingSecret: env.SLACK_SIGNING_SECRET,
socketMode: true,
socketMode: env.SLACK_DISABLE_SOCKET_MODE !== "true",
appToken: env.SLACK_APP_TOKEN,
redirectUri: `${env.PUBLIC_URL}/login/slack/callback`,
installerOptions: {
Expand Down
Loading