Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Set limits for 'none' plan to 0

Blue Mouse2b110a827722
diff --git a/backend/apps/cloud/src/user/entities/user.entity.ts b/backend/apps/cloud/src/user/entities/user.entity.ts
index f19bb20a4..dc7c7e7f7 100644
--- a/backend/apps/cloud/src/user/entities/user.entity.ts
+++ b/backend/apps/cloud/src/user/entities/user.entity.ts
@@ -49,8 +49,8 @@ interface PlanSignature {
export const ACCOUNT_PLANS = {
[PlanCode.none]: {
id: PlanCode.none,
- monthlyUsageLimit: 10000000,
- maxAlerts: 50,
+ monthlyUsageLimit: 0,
+ maxAlerts: 0,
pid: null,
ypid: null,
},
diff --git a/web/app/lib/constants/index.ts b/web/app/lib/constants/index.ts
index f4c17bbeb..a199ebc01 100644
--- a/web/app/lib/constants/index.ts
+++ b/web/app/lib/constants/index.ts
@@ -560,7 +560,7 @@ export const PLAN_LIMITS = {
none: {
index: 0, // 'downgrade' or 'upgrade' logic depends on this
planCode: 'none',
- monthlyUsageLimit: 10000000,
+ monthlyUsageLimit: 0,
legacy: false,
price: {
USD: {
@@ -576,7 +576,7 @@ export const PLAN_LIMITS = {
yearly: 0,
},
},
- maxAlerts: 50,
+ maxAlerts: 0,
},
free: {
index: 0, // 'downgrade' or 'upgrade' logic depends on this