Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

feat: set AI credits in pricing plans

flooorianflocfcc7a1ffda5
diff --git a/packages/utils/src/constants/pricing.tsx b/packages/utils/src/constants/pricing.tsx
index 249132e828..c89dd2152b 100644
--- a/packages/utils/src/constants/pricing.tsx
+++ b/packages/utils/src/constants/pricing.tsx
@@ -9,6 +9,7 @@ const BUSINESS_PLAN_MODIFIER = ({
domains = 40,
tags = 150,
users = 15,
+ aiCredits = "∞",
ids = [],
}: {
name: string;
@@ -18,6 +19,7 @@ const BUSINESS_PLAN_MODIFIER = ({
clicks: number;
domains: number;
users: number;
+ aiCredits?: string;
tags: number;
ids: string[];
}) => ({
@@ -55,6 +57,7 @@ const BUSINESS_PLAN_MODIFIER = ({
{ text: "2-year analytics retention" },
{ text: `${domains} custom domains` },
{ text: `${users} users` },
+ { text: `${aiCredits} AI credits` },
{
text: `${nFormatter(tags, { full: true })} tags`,
footnote: {
@@ -109,6 +112,7 @@ export const PLANS = [
{ text: "30-day analytics retention" },
{ text: "3 custom domains" },
{ text: "1 user" },
+ { text: "10 AI credits" },
{
text: "Community support",
footnote: "Help center + GitHub discussions.",
@@ -165,6 +169,7 @@ export const PLANS = [
{ text: "1-year analytics retention" },
{ text: "10 custom domains" },
{ text: "5 users" },
+ { text: "1,000 AI credits" },
{ text: "Basic support", footnote: "Basic email support." },
{
text: "Root domain redirect",
@@ -191,6 +196,7 @@ export const PLANS = [
domains: 40,
tags: 150,
users: 15,
+ aiCredits: "∞",
ids: [
"price_1LodLoAlJJEpqkPV9rD0rlNL", // old monthly
"price_1LodLoAlJJEpqkPVJdwv5zrG", // oldest yearly
@@ -210,6 +216,7 @@ export const PLANS = [
domains: 100,
tags: 300,
users: 40,
+ aiCredits: "∞",
ids: [
"price_1OnWu0AlJJEpqkPVWk4144ZG", // monthly (test)
"price_1OnWu0AlJJEpqkPVkDWVriAB", // yearly (test)
@@ -226,6 +233,7 @@ export const PLANS = [
domains: 250,
tags: 500,
users: 100,
+ aiCredits: "∞",
ids: [
"price_1OnWvCAlJJEpqkPVLzLHx5QD", // monthly (test)
"price_1OnWvCAlJJEpqkPVHhCCvIOq", // yearly (test)
@@ -242,6 +250,7 @@ export const PLANS = [
domains: 500,
tags: 1000,
users: 250,
+ aiCredits: "∞",
ids: [
"price_1OnWwLAlJJEpqkPVXtJyPqLk", // monthly (test)
"price_1OnWwLAlJJEpqkPV4eMbOkNh", // yearly (test)