From 014f79fb73e58dc47b31f462c41c9433205c8cdc Mon Sep 17 00:00:00 2001 From: Pontus Abrahamsson Date: Tue, 7 Jan 2025 16:43:59 +0100 Subject: [PATCH] Regions --- apps/api/src/lib/auth.ts | 2 +- apps/api/wrangler.json | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/api/src/lib/auth.ts b/apps/api/src/lib/auth.ts index c8a4b78..4acf730 100644 --- a/apps/api/src/lib/auth.ts +++ b/apps/api/src/lib/auth.ts @@ -98,7 +98,7 @@ export const setupAuth = (c: Context) => { return { data: { ...session, - activeOrganizationId: "test", + activeOrganizationId: org?.organizations?.id, }, }; }, diff --git a/apps/api/wrangler.json b/apps/api/wrangler.json index 5509b72..aeaf77a 100644 --- a/apps/api/wrangler.json +++ b/apps/api/wrangler.json @@ -4,6 +4,9 @@ "compatibility_date": "2024-12-29", "workers_dev": true, "compatibility_flags": ["nodejs_compat"], + "placement": { + "mode": "smart" + }, "d1_databases": [ { "binding": "DB",