You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thenext.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.
The text was updated successfully, but these errors were encountered: