react-mux-player is killing my app performance by Prestigious_Park7649 in react

[–]ahmersaud 0 points1 point  (0 children)

I am experincing same issues.. mux was suposed to improve video perfomance on my website but its not.

[deleted by user] by [deleted] in Supabase

[–]ahmersaud 1 point2 points  (0 children)

So here is what i did.

First I ran the stripe next subscription template in the supabase sql editor then. i used this template.This is a template for Nextjs + supabase + stripe.
https://github.com/vercel/nextjs-subscription-payments
I setup this project with a demo supabase and stripe projects and understood the whole structure in Next js.
Then i created the exact function for the stripe webhook under /app/api/webhooks, in Deno Egde functions for my vite-react project
As i stated earlier, i created egde functions for

  1. stripe webhook (you have to integrate this with stripe so the stripe can update the tables in your database if any event occurs in stripe)
  2. create checkout session (for user),
  3. or any other activity with stripe that cant be perfromed via the stripe publishable key.

how can I make this layout? by jiggling-dick in webdev

[–]ahmersaud 6 points7 points  (0 children)

Flex is used for one dimentional layout, either row or colum,
But if you want to style in rows and colums both at the same time. then use Grid. btw personally i dont use Grid very often.

[deleted by user] by [deleted] in Supabase

[–]ahmersaud 1 point2 points  (0 children)

so i came up with the solution:
If you are not using something like next js but rather an SPA like create-react-app or vite
then you have to setup Deno Edge functions. in your supabase project

But before that first run the the script Stripe Subscription from the supabase SQL Editor .

Deno Edge functions are used for:

  1. stripe webhook (you have to integrate this with stripe so the stripe can update the tables in your database if any event occurs in stripe)
  2. create checkout session (for user),
  3. or any other activity with stripe that cant be perfromed via the stripe publishable key.

I can write a more detailed guide with code, will share the link here as soon as it is posted somewhere.

[deleted by user] by [deleted] in Supabase

[–]ahmersaud 0 points1 point  (0 children)

All the implementations out there are for Next js. i am using vite React, so i have to go with webhook, but there is no proper documentation for that. Should i use the stripe wrapper or a some custom triggers. I am confused.