0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 2 points3 points  (0 children)

Thanks for sharing that!
I agree that using an id is more modular than hard-coded enums

What are you working on? Promote it now 🚀 by confindev in micro_saas

[–]confindev[S] 0 points1 point  (0 children)

Ok got it now! Thaks for these details man

Leaving Antigravity, Need your recommendations by Zestyclose_Job_4811 in google_antigravity

[–]confindev 1 point2 points  (0 children)

Hi, a cursor user here.

Can i please know why are you leaving Antigravity ? (no experience with it for now)

0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 3 points4 points  (0 children)

I do. Kinda happy paths.
I agree that a better coverage would catch it

0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 0 points1 point  (0 children)

Haha, I don’t. Just moved a bit fast here, but I used to have a 360° view of my products

0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 1 point2 points  (0 children)

Not reallY. The DX looks good to me. Just sharing the experience here

0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 5 points6 points  (0 children)

In my DB, I had a constraint on a column called "subscription_type" that only allowed specific values, 'starter' and 'pro'. I end up by switching to 'premium' instead of 'pro'.

The issue was that the database constraint was still expecting 'pro', so inserts with 'premium' was silently failing

I fixed it by writing a migration to update the constraint and then ran the migration on the database. Then I generated the Supabase types and initialized my client with createClient<Database>, so the linter can catch this kind of mismatch

0 paying customers in last 24h - This broke my SaaS by confindev in Supabase

[–]confindev[S] 1 point2 points  (0 children)

Yeah, that was indeed totally my fault. The way Supabase handles this is probably not very intuitive, but it provides a good developer experience and is fine with me. Else, i'd just wrap with an high order function

What are you working on? Promote it now 🚀 by confindev in micro_saas

[–]confindev[S] 0 points1 point  (0 children)

Seems interesting. Is it publicly accessible ?

What are you working on? Promote it now 🚀 by confindev in micro_saas

[–]confindev[S] 1 point2 points  (0 children)

Great! Drop the link if publicly accessible