Basejump leverages both Supabase and Stripe. In both cases, there are environemnt variables needed to complete your integration.
These variables shouldn't be set using the standard NextJS
.env files. They are used inside scripts as well. I like to use direnv.
URL- This is the URL of your main web app. It's used to generate redirect links for emails and Stripe payment pages
NEXT_PUBLIC_SUPABASE_ANON_KEY- Anonymous key for your Supabase instance
NEXT_PUBLIC_SUPABASE_URL- URL for your Supabase instance
STRIPE_SECRET_KEY- Secret key for your Stripe account. It's used to listen for webhooks to track account statuses.
SUPABASE_SERVICE_ROLE_KEY- Privileged token for your Supabase instance. It's used to update account info off Stripe webhooks.