logging
This commit is contained in:
1 parent
e0e260be8f
commit
d77de3b6bc
2 files changed
+5
-10
No files matched your search
@@ -12,9 +12,6 @@ import { Tooltip } from "@/components/design-elements";
|
|||||||
const DEPLOYMENT_MODE = import.meta.env.VITE_APP_DEPLOYMENT_MODE;
|
const DEPLOYMENT_MODE = import.meta.env.VITE_APP_DEPLOYMENT_MODE;
|
||||||
const IS_SAAS = DEPLOYMENT_MODE === "saas";
|
const IS_SAAS = DEPLOYMENT_MODE === "saas";
|
||||||
|
|
||||||
console.log("Deployment mode:", DEPLOYMENT_MODE);
|
|
||||||
console.log("Is SaaS:", IS_SAAS);
|
|
||||||
|
|
||||||
export const SettingsSwitch = () => {
|
export const SettingsSwitch = () => {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
@@ -57,6 +54,11 @@ export const SettingsSwitch = () => {
|
|||||||
|
|
||||||
const hasMaster = orgPermissions.includes("master");
|
const hasMaster = orgPermissions.includes("master");
|
||||||
|
|
||||||
|
console.log(JSON.stringify(user, null, 2));
|
||||||
|
console.log("Deplyoment mode:", DEPLOYMENT_MODE);
|
||||||
|
console.log("isSaas:", IS_SAAS);
|
||||||
|
console.log("hasBilling", hasBilling);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Tooltip title="Settings" placement="top">
|
<Tooltip title="Settings" placement="top">
|
||||||
|
|||||||
@@ -18,13 +18,6 @@ const createApp = async () => {
|
|||||||
const services = await initServices();
|
const services = await initServices();
|
||||||
const controllers = initControllers(services);
|
const controllers = initControllers(services);
|
||||||
const app = express();
|
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(express.json());
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(
|
app.use(
|
||||||
|
|||||||
Reference in new issue
Block a user