diff --git a/.env.sample b/.env.sample index a1703b8..91dbdb2 100644 --- a/.env.sample +++ b/.env.sample @@ -23,4 +23,5 @@ STRIPE_SECRET_KEY= PRICE_ID= NEXT_PUBLIC_TRIAL_PERIOD_DAYS= NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL= -BASE_URL=http://localhost:3000 \ No newline at end of file +BASE_URL=http://localhost:3000 +NEXT_PUBLIC_PRICING= \ No newline at end of file diff --git a/pages/subscribe.tsx b/pages/subscribe.tsx index 8f920bd..1c9dd20 100644 --- a/pages/subscribe.tsx +++ b/pages/subscribe.tsx @@ -35,7 +35,7 @@ export default function Subscribe() { />

{process.env.NEXT_PUBLIC_TRIAL_PERIOD_DAYS || 14} days free trial, then - $5/month afterwards + ${process.env.NEXT_PUBLIC_PRICING}/month afterwards

diff --git a/types/enviornment.d.ts b/types/enviornment.d.ts index 5bf5055..168c9fa 100644 --- a/types/enviornment.d.ts +++ b/types/enviornment.d.ts @@ -17,12 +17,13 @@ declare global { EMAIL_FROM?: string; EMAIL_SERVER?: string; - NEXT_PUBLC_STRIPE_IS_ACTIVE?: boolean; + NEXT_PUBLC_STRIPE_IS_ACTIVE?: string; STRIPE_SECRET_KEY?: string; PRICE_ID?: string; NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL?: string; NEXT_PUBLIC_TRIAL_PERIOD_DAYS?: string; BASE_URL?: string; + NEXT_PUBLIC_PRICING?: string; } } }