Skip to content

Commit 1c53123

Browse files
committed
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.
1 parent 289a673 commit 1c53123

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

apps/website/app/api/contact/route.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -71,22 +71,22 @@ export async function POST(request: NextRequest) {
7171
}
7272
}
7373

74-
// Send notification to Slack (sales or support channel)
75-
try {
76-
const slackSuccess = await notifySlack(body);
77-
if (slackSuccess) {
78-
console.log(
79-
`Successfully sent ${body.inquiryType} inquiry notification to Slack`,
80-
);
81-
} else {
82-
console.warn(
83-
`Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
84-
);
85-
}
86-
} catch (error) {
87-
console.error("Error sending to Slack:", error);
88-
// Continue with email even if Slack fails
89-
}
74+
// // Send notification to Slack (sales or support channel)
75+
// try {
76+
// const slackSuccess = await notifySlack(body);
77+
// if (slackSuccess) {
78+
// console.log(
79+
// `Successfully sent ${body.inquiryType} inquiry notification to Slack`,
80+
// );
81+
// } else {
82+
// console.warn(
83+
// `Failed to send ${body.inquiryType} inquiry notification to Slack, but continuing with email`,
84+
// );
85+
// }
86+
// } catch (error) {
87+
// console.error("Error sending to Slack:", error);
88+
// // Continue with email even if Slack fails
89+
// }
9090

9191
// Format email content
9292
const emailSubject = `[${body.inquiryType.toUpperCase()}] New contact form submission from ${body.firstName} ${body.lastName}`;

0 commit comments

Comments
 (0)