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

chore(module): conditionally add redirect plugin #157

Merged
merged 1 commit into from
Feb 20, 2023
Merged

chore(module): conditionally add redirect plugin #157

merged 1 commit into from
Feb 20, 2023

Conversation

kevinmarrec
Copy link
Contributor

Description

This removes extra (even if negligible) overhead when not using the redirect feature, by not registering the global auth-redirect route middleware plugin.

@netlify
Copy link

netlify bot commented Feb 18, 2023

👷 Deploy request for n3-supabase pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit b1ba3c5

@Atinux
Copy link
Collaborator

Atinux commented Feb 18, 2023

Shall we also add the redirect: false in the defaults object too?

@kevinmarrec
Copy link
Contributor Author

@Atinux Already the case if I'm not wrong :

redirect: false,

@larbish larbish merged commit 0cad0a5 into nuxt-modules:main Feb 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants