Skip to content

Commit

Permalink
fix (stripe): Add headers and remove filter for subscriptions to also…
Browse files Browse the repository at this point in the history
… catch cancelled subscriptions
  • Loading branch information
VVoruganti committed Dec 30, 2024
1 parent 75ef417 commit 68c039b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions www/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const getCSPDirectives = () => {
"font-src 'self' data:",
// Worker handling
"worker-src 'self' blob:",
// Frame sources
"frame-src 'self' https://vercel.live https://js.stripe.com https://hooks.stripe.com https://checkout.stripe.com https://connect.stripe.com",
// Supabase connectivity
isDevelopment
? "connect-src 'self' http://127.0.0.1:54321 https://vitals.vercel-insights.com https://*.posthog.com https://vercel.live https://js.stripe.com https://checkout.stripe.com"
Expand Down
1 change: 0 additions & 1 deletion www/utils/supabase/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export const getSubscription = cache(async (supabase: SupabaseClient) => {
const { data: subscription, error } = await supabase
.from('subscriptions')
.select('*, prices(*, products(*))')
.in('status', ['trialing', 'active'])
.maybeSingle();

return subscription;
Expand Down

0 comments on commit 68c039b

Please sign in to comment.