checkStripePortalLInkExists in shared/constants.ts

I'm using OpenSaas with with wasp 0.13.2 and WSL2.
The documentation (https://docs.opensaas.sh/guides/stripe-integration/) says to add this code to the src/shared/constants.ts file:
const customerPortalTestUrl = 'https//billing.stripe.com/p/login/test_...'
const customerPortalProdUrl = undefined

export const STRIPE_CUSTOMER_PORTAL_LINK = isDev ? customerPortalTestUrl : customerPortalProdUrl;

checkStripePortalLinkExists(STRIPE_CUSTOMER_PORTAL_LINK); // throws an error if the link is not set in production

isDev and checkStripePortalLinkExists are not defined and throw an error.
OpenSaaS.sh
Open SaaS is a free, open-source, full-stack SaaS starter kit for React + NodeJS.
Was this page helpful?