JavascriptMick / supanuxt-saas

Simple boilerplate for SAAS. Nuxt3, Supabase, OAuth, Prisma, TRPC, Pinia, Stripe, Tailwind, OpenAI
https://nuxt3-saas-boilerplate.netlify.app/
MIT License
407 stars 55 forks source link

Fetch Data from Supabase #1

Closed atharvnuthi closed 1 year ago

atharvnuthi commented 1 year ago

Hey! I really appreciate you making this boilerplate for the Authentication part. Could you add the fetch part too please? I am getting erros saying nuxt instance unavailable. The documentation is really poor on the nuxt-supabase website.

JavascriptMick commented 1 year ago

hi @atharvnuthi Glad you appreciate the repo. I have decided to fetch data from the Supabase store via Prisma rather than via the Supabase API. I just prefer Prisma as it makes it so easy to manage schema changes and generates all the types... and these types flow all the way through to the front end via TRPC. Pretty happy with the setup although there are a lot of moving parts. So I can't fulfil your request. I hope you resolved your issue eventually.