This commit is contained in:
Alex Holliday committed 2025-12-02 17:44:44 +00:00
1 parent ad2954e326
commit a9a598941f
2 files changed
+7 -6

No files matched your search

@@ -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 (
<>
<Tooltip title="Settings" placement="top">
+7
View File
@@ -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(