Skip to content

Commit 87694c7

Browse files
committed
fix: default ses aws region
1 parent 968eba1 commit 87694c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/enterprise-contact/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ const MAX_REQUESTS_PER_WINDOW = 3
88

99
// Configure SES client
1010
const sesClient = new SESClient({
11-
region: process.env.SES_REGION || "us-east-1",
11+
region: process.env.SES_REGION || "us-east-2",
1212
credentials: {
1313
accessKeyId: process.env.SES_ACCESS_KEY_ID!,
1414
secretAccessKey: process.env.SES_SECRET_ACCESS_KEY!,
1515
},
1616
})
1717

1818
// Log the region being used for debugging
19-
console.log("Using AWS SES region:", process.env.SES_REGION || "us-east-1")
19+
console.log("Using AWS SES region:", process.env.SES_REGION || "us-east-2")
2020

2121
// Simple in-memory rate limiting (in production, use Redis or similar)
2222
const requestHistory = new Map<string, number[]>()

0 commit comments

Comments
 (0)