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

Configuring exclude in Nuxt 3 with Asynchronous Functions #323

Open
NereaFontecha opened this issue Jan 11, 2024 · 0 comments
Open

Configuring exclude in Nuxt 3 with Asynchronous Functions #323

NereaFontecha opened this issue Jan 11, 2024 · 0 comments
Labels
question Further information is requested

Comments

@NereaFontecha
Copy link

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 NereaFontecha added the question Further information is requested label Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant