Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default settings not working for types annotations for serverSupabaseClient and serverSupabaseServiceRole #424

Open
Zebnastien opened this issue Oct 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Zebnastien
Copy link

This issue is related to #411
In short, the default supabase types path setting is not working if not explicitly declared in nuxt.config.ts

Version

@nuxtjs/supabase: 1.4.1
nuxt: 3.13.2

Steps to reproduce

Just run the script mentionned in NuxtSupabase documentation (https://supabase.nuxtjs.org/get-started#types)

What is Expected?

As said in the documentation, serverSupabaseClient and serverSupabaseServiceRole should get typing from ./types/database.types.ts by default.

What is actually happening?

serverSupabaseClient and serverSupabaseServiceRole are not getting typing unless I explicitly add this to to nuxt.config.ts:

    supabase: {
        types: "./types/database.types.ts",
    },
@Zebnastien Zebnastien added the bug Something isn't working label Oct 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant