Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Add hasNot to redirects #34046

Closed
corysimmons opened this issue Feb 7, 2022 · 0 comments
Closed

Add hasNot to redirects #34046

corysimmons opened this issue Feb 7, 2022 · 0 comments

Comments

@corysimmons
Copy link
Contributor

corysimmons commented Feb 7, 2022

Describe the feature you'd like to request

I'd love to be able to redirect people to a login page if hasNot: someAuthCookieKey...

has exists.

Describe the solution you'd like

Add a hasNot or just allow full-blown regex matching instead of only being able to match after xyz.

Describe alternatives you've considered

You can redirect from within the app, but I'm always torn about whether I should use next.config.js to do redirects or just manually do them from within the app. It feels like the next.config.js approach is better/faster, but running into weird things like this make me want to delete it and just roll everything from within components. :(

From googling this seems like a pretty common request where people are just like "It's not available. 🤷‍♂️" and it also seems pretty easy to add.

@vercel vercel locked and limited conversation to collaborators Feb 7, 2022
@balazsorban44 balazsorban44 converted this issue into discussion #34052 Feb 7, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant