nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
733 stars 129 forks source link

SSR Doesn't work in my app with Supabase #265

Closed razmatinyan closed 1 year ago

razmatinyan commented 1 year ago

Describe the problem

I have an issue with my Nuxt 3 App. It is not rendering is SSR mode. When I look at page in "View page source" mode, it is not rendered in SSR. In main "__nuxt" block I got empty <div id="__nuxt"></div> .

Reproduction

https://stackblitz.com/edit/nuxt-shortener-url?file=app.vue,app.config.ts

Notes

I left example.env file in reproduction, with my Supabase datas. So please don't steal it :)

P.S. Problem comes from Supabase. When I fully disable the Supabase the website starts to render in SSR correctly, but when I enable it, i get only empty __nuxt block.

razmatinyan commented 1 year ago

Update!

I set the redirect option to false and it fixed my issue.

Closing.