Skip to content

Configuring exclude in Nuxt 3 with Asynchronous Functions #323

Open
@NereaFontecha

Description

@NereaFontecha

Hi ,
I'm interested in understanding whether it's feasible to generate an array of slugs dynamically, fetching them asynchronously within a function. In this case the function name is useExcludedURLS().
Thanks

nuxt.config.js
supabase: { url: process.env.SUPABASE_URL, key: process.env.SUPABASE_ANON_KEY, redirectOptions: { login: '/auth/sign-up', callback: '/confirm', **exclude: useExcludedURLS()** }, },

// Function
const useExcludedURLS = async ()=> { return await new Promise((resolve, reject) => { resolve( ['/', '/about']); }); }

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions