From 1c53123bd1e3e7dcf4487b36f1e54d4b85c5f323 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Tue, 9 Dec 2025 13:20:07 -0600 Subject: [PATCH] refactor: comment out Slack notification logic in contact form submission - Temporarily disabled the Slack notification feature in the contact form submission process. - Retained the structure for potential future reactivation while ensuring email notifications remain functional. --- apps/website/app/api/contact/route.ts | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/apps/website/app/api/contact/route.ts b/apps/website/app/api/contact/route.ts index 58565fa..db0dd3a 100644 --- a/apps/website/app/api/contact/route.ts +++ b/apps/website/app/api/contact/route.ts @@ -71,22 +71,22 @@ export async function POST(request: NextRequest) { } } - // Send notification to Slack (sales or support channel) - try { - const slackSuccess = await notifySlack(body); - if (slackSuccess) { - console.log( - `Successfully sent ${body.inquiryType} inquiry notification to Slack`, - ); - } else { - console.warn( - `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`, - ); - } - } catch (error) { - console.error("Error sending to Slack:", error); - // Continue with email even if Slack fails - } + // // Send notification to Slack (sales or support channel) + // try { + // const slackSuccess = await notifySlack(body); + // if (slackSuccess) { + // console.log( + // `Successfully sent ${body.inquiryType} inquiry notification to Slack`, + // ); + // } else { + // console.warn( + // `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`, + // ); + // } + // } catch (error) { + // console.error("Error sending to Slack:", error); + // // Continue with email even if Slack fails + // } // Format email content const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;