supabase
supabase copied to clipboard
Configuring exclude in Nuxt 3 with Asynchronous Functions
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']); }); }
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.