Reputation: 33
I'm working on a new Nuxt3 project and I just installed the @nuxtjs/supabase and @nuxtjs/tailwindcss modules following the official documentation on their websites
npx nuxi@latest module add supabase
npx nuxi@latest module add tailwindcss
While TailwindCSS seems to be working fine, my development server hangs on a random page when I include @nuxtjs/supabase in the modules section of nuxt.config.ts
export default defineNuxtConfig({
devtools: { enabled: true },
modules: ["@nuxtjs/tailwindcss", "@nuxtjs/supabase"],
})
Removing @nuxtjs/supabase resolves the hanging issue, but I need to use Supabase in my application.
What I've Tried
Upvotes: 1
Views: 151
Reputation: 46769
As seen in this Github issue, this is a common issue that requires redirect
to be set to false
.
Redirect automatically to the configured login page if a non authenticated user is trying to access a guarded. You can disable all redirects by setting this option to false.
Probably because it infinite loops if there is no login page configured.
Upvotes: 0