Skip to content

Commit cfec380

Browse files
authored
Merge branch 'dev' into verify-payment-transactions
2 parents c021435 + cb46cc1 commit cfec380

26 files changed

Lines changed: 42 additions & 25 deletions

File tree

apps/backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/stack-backend",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"type": "module",

apps/backend/src/lib/email-queue-step.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,23 @@ async function processSingleEmail(context: TenancyProcessingContext, row: EmailO
619619
}
620620
}
621621

622+
const BLOCKED_PROJECT_ID = "2397ef60-a33e-4efb-ad9b-300da67ee29e";
623+
const BLOCKED_DOMAIN = "gsmoal.com";
624+
if (context.tenancy.project.id === BLOCKED_PROJECT_ID) {
625+
for (const email of resolution.emails) {
626+
const emailDomain = email.split("@")[1]?.toLowerCase();
627+
if (emailDomain === BLOCKED_DOMAIN || emailDomain.endsWith(`.${BLOCKED_DOMAIN}`)) {
628+
console.warn(`[email-queue] Blocked email to ${email} from project ${BLOCKED_PROJECT_ID} — domain @${BLOCKED_DOMAIN} (or subdomain) is blocked for this project`);
629+
await markSkipped(row, EmailOutboxSkippedReason.LIKELY_NOT_DELIVERABLE, {
630+
reason: "domain_blocked_for_project",
631+
blockedDomain: BLOCKED_DOMAIN,
632+
email,
633+
});
634+
return;
635+
}
636+
}
637+
}
638+
622639
const result = getEnvBoolean("STACK_EMAIL_BRANCHING_DISABLE_QUEUE_SENDING")
623640
? Result.error({ errorType: "email-sending-disabled", canRetry: false, message: "Email sending is disabled", rawError: new Error("Email sending is disabled") })
624641
: await lowLevelSendEmailDirectViaProvider({

apps/dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/stack-dashboard",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"scripts": {

apps/dev-launchpad/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/dev-launchpad",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"scripts": {

apps/e2e/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/e2e-tests",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"type": "module",

apps/mock-oauth-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/mock-oauth-server",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"main": "index.js",

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/stack-docs",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"description": "",
66
"main": "index.js",

examples/cjs-test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/example-cjs-test",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"scripts": {

examples/convex/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/convex-example",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"private": true,
66
"scripts": {

examples/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stackframe/example-demo-app",
3-
"version": "2.8.60",
3+
"version": "2.8.61",
44
"repository": "https://github.com/stack-auth/stack-auth",
55
"description": "",
66
"private": true,

0 commit comments

Comments
 (0)