diff --git a/client/src/components/inputs/SwitchSettings.tsx b/client/src/components/inputs/SwitchSettings.tsx index 366def1c4..759fa8a8d 100644 --- a/client/src/components/inputs/SwitchSettings.tsx +++ b/client/src/components/inputs/SwitchSettings.tsx @@ -65,12 +65,6 @@ export const SettingsSwitch = () => { const hasMaster = perms.includes("master"); - console.log(JSON.stringify(user, null, 2)); - console.log("Deplyoment mode:", DEPLOYMENT_MODE); - console.log("isSaas:", IS_SAAS); - console.log("orgPermissions at render", orgPermissions); - console.log("showBilling", showBilling); - return ( <> diff --git a/server/src/index.ts b/server/src/index.ts index 8623fc803..a2ffc167c 100644 --- a/server/src/index.ts +++ b/server/src/index.ts @@ -18,6 +18,13 @@ const createApp = async () => { const services = await initServices(); const controllers = initControllers(services); const app = express(); + // Stripe webhook requires raw body for signature verification; mount it first + app.post( + "/api/v1/stripe/webhook", + express.raw({ type: "application/json" }) as any, + // Defer to router handler registered later; this preserves raw body + (req, res, next) => next() + ); app.use(express.json()); app.use(cookieParser()); app.use(