Skip to content

Commit aa79f6e

Browse files
committed
feat: add starter plan
1 parent 2e1bce0 commit aa79f6e

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

components/users/PricingTable.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ export function PricingTable() {
180180
))}
181181
</RadioGroup>
182182
</div> */}
183-
<div className="grid max-w-md grid-cols-1 gap-8 mx-auto mt-10 isolate md:max-w-2xl md:grid-cols-2 lg:max-w-4xl xl:mx-0 xl:max-w-none xl:grid-cols-4">
183+
<div className="grid max-w-md grid-cols-1 gap-2 mx-auto mt-10 isolate md:max-w-2xl md:grid-cols-2 lg:max-w-4xl xl:mx-0 xl:max-w-none xl:grid-cols-5">
184184
{tiers.map((tier) => (
185185
<div
186186
key={tier.id}

src/constants/plans.config.ts

+20-1
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,24 @@ export const plansConfig: Record<string, PlanConfig> = {
2828
],
2929
minPollingInterval: 900,
3030
},
31-
prod_NYG90VSEfU0TfQ: {
31+
prod_NbsBYZA9BxFF7r: {
3232
key: 'starter',
3333
name: 'Starter',
34+
maxOperations: 30000,
35+
priceId: 'price_1MqeRZFrRlOZNZ9xl2OQmgP2',
36+
price: { monthly: 9, annually: 9 * 12 },
37+
features: [
38+
'30,000 operations per month',
39+
'25 active workflows',
40+
'10 blockchain listeners',
41+
'5 minutes polling interval',
42+
'Execute workflows on error',
43+
],
44+
minPollingInterval: 300,
45+
},
46+
prod_NYG90VSEfU0TfQ: {
47+
key: 'core',
48+
name: 'Core',
3449
maxOperations: 1e5,
3550
priceId: 'price_1Mn9dEFrRlOZNZ9xzskkpkvH',
3651
price: { monthly: 29, annually: 29 * 12 },
@@ -91,6 +106,10 @@ export const plansConfig: Record<string, PlanConfig> = {
91106
// Plans on Stripe test mode
92107
if (process.env.NODE_ENV === 'development') {
93108
// starter
109+
plansConfig['prod_NbsFKhWJ6PMBpx'] = plansConfig['prod_NbsBYZA9BxFF7r']
110+
plansConfig['prod_NbsFKhWJ6PMBpx'].priceId = 'price_1MqeVIFrRlOZNZ9x9wEp6W2G'
111+
delete plansConfig['prod_NbsBYZA9BxFF7r']
112+
// core
94113
plansConfig['prod_NXQOvZowLlwuaH'] = plansConfig['prod_NYG90VSEfU0TfQ']
95114
plansConfig['prod_NXQOvZowLlwuaH'].priceId = 'price_1MmLXfFrRlOZNZ9xynfzzKnP'
96115
delete plansConfig['prod_NYG90VSEfU0TfQ']

src/json-schema/jsonSchemaDefinitions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export const jsonSchemaDefinitions = (plan: PlanConfig) => ({
2828
readOnly: plan.minPollingInterval > 15,
2929
},
3030
{
31-
title: `1 minute${plan.minPollingInterval > 60 ? ' (Available from Starter Plan)' : ''}`,
31+
title: `1 minute${plan.minPollingInterval > 60 ? ' (Available from Core Plan)' : ''}`,
3232
const: 60,
3333
readOnly: plan.minPollingInterval > 60,
3434
},

0 commit comments

Comments
 (0)