CODERCHAD
CODERCHAD
TTCTheo's Typesafe Cult
Created by CODERCHAD on 3/19/2024 in #questions
Stripe issue of India
Due to recent changes in rules by the govt, stripe is not activating any new account in India. It's horrible for saas founders like me because there's not a single alternative to stripe which works in all the countries with most of the payment providers and also has a good enough dx. As such a lot of people are struggling with this issue in India. Can the community help spread some awareness about this. @theo
3 replies
TTCTheo's Typesafe Cult
Created by CODERCHAD on 1/1/2024 in #questions
Need help with strip subscription
I am creating a stripe subscriptions flow with 2 per month plans. I want to use stripe's billing portal to upgrade and downgrade the plans with proration. What settings in stripe should I do and how to integrate it in t3 stack. If any code is available please give me the link. I am using the latest versions of t3 stack.
2 replies
TTCTheo's Typesafe Cult
Created by CODERCHAD on 11/11/2023 in #questions
How to integrate clerk org role based auth with supabase row level security in database and storage.
Sorry to ask it here, but no one replying in supabase. So maybe someone who has solved this problem can tell me. I am using t3-stack along with clerk as auth and supabase for database and storage. Can you please show me how to implement clerk org roles in supabase RLS correctly. Currently both the supabase and clerk docs doesn't mention user roles. A workaround solution can be to create a users table and add clerk data to it through webhooks and use it for RLS policies. Since adding the clerk data directly to auth table looks impossible. If this solutions sounds good please tell me how to do it. If not then what should I do?
1 replies
TTCTheo's Typesafe Cult
Created by CODERCHAD on 8/29/2023 in #questions
Upload database using t3 stack
I have a database that I want to upload once and update frequently (400k rows for upload and 3-4k for update). This database also has relations defined using prisma so I can't reset the entire database. The current process I want to achieve is to upload the db file into uploadthing and then use fetch and upload the database using prisma. But I don't know how to run this process in server instead of frontend. If my process is correct please help me do it. If not tell me the correct method. Using seed file in production don't look possible aswell.
1 replies
TTCTheo's Typesafe Cult
Created by CODERCHAD on 7/13/2023 in #questions
Uploadthing for a large project
I want to use uploadthing for a big ebook project. Will it be cost-effective? Our rough guesses for usage are 30-50mb pdf and opened about 10000-50000 times daily. Another solution is to convert the books to JSON format but that's difficult for thousands of pdfs. If there's any other solution please suggest. The reason I want to convert these into JSON is to search in them. If I use uploadthing what will be the estimated costing of this?
4 replies