⚡️⚡️⚡️ Self-hosted collaborative bookmark manager to collect, read, annotate, and fully preserve what matters, all in one place.
TypeScript bookmarkbookmark-managercollaborationnextjsreact-nativeread-it-laterself-hostedtypescript
minor bug fixed
Daniel985687ca8961
diff --git a/.env.sample b/.env.sampleindex 3413f7c2..2140dd20 100644--- a/.env.sample+++ b/.env.sample@@ -21,4 +21,5 @@ EMAIL_SERVER=STRIPE_SECRET_KEY=PRICE_ID=TRIAL_PERIOD_DAYS=-NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL=\ No newline at end of file+NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL=+BASE_URL=http://localhost:3000\ No newline at end of filediff --git a/lib/api/paymentCheckout.ts b/lib/api/paymentCheckout.tsindex 34f8e860..56101307 100644--- a/lib/api/paymentCheckout.ts+++ b/lib/api/paymentCheckout.ts@@ -28,8 +28,8 @@ export default async function paymentCheckout(],mode: "subscription",customer_email: isExistingCostomer ? undefined : email.toLowerCase(),- success_url: "http://localhost:3000?session_id={CHECKOUT_SESSION_ID}",- cancel_url: "http://localhost:3000/login",+ success_url: `${process.env.BASE_URL}?session_id={CHECKOUT_SESSION_ID}`,+ cancel_url: `${process.env.BASE_URL}/login`,automatic_tax: {enabled: true,},diff --git a/types/enviornment.d.ts b/types/enviornment.d.tsindex 0f32eb76..96553283 100644--- a/types/enviornment.d.ts+++ b/types/enviornment.d.ts@@ -21,6 +21,7 @@ declare global {PRICE_ID?: string;NEXT_PUBLIC_STRIPE_BILLING_PORTAL_URL?: string;TRIAL_PERIOD_DAYS?: string;+ BASE_URL?: string;}}}