supabase icon indicating copy to clipboard operation
supabase copied to clipboard

Configuring exclude in Nuxt 3 with Asynchronous Functions

Open NereaFontecha opened this issue 1 year ago • 1 comments

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']); }); }

NereaFontecha avatar Jan 11 '24 15:01 NereaFontecha

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar May 06 '25 13:05 github-actions[bot]