How to redirect with new headers back to the same page?
User goes to page
/foo
, we check if this page is protected, if it is, we rewrite the page to something else using middleware, now this identical page has a password form.
The goal is to authenticate the password, and if its correct, redirect them back to the original page with headers pretty much allowing the user to skip the rewrite in the middleware and view the protected page.
Is this possible?20KMembers
View on DiscordWant results from more Discord servers?
More PostsThe Edge - what's the pointso as far as i know the edge move a server close as possible to your user right?
but then what's thcloudflare R2 in Versel?Has anyone here used R2 in their NextJS app hosted on Versel? Trying to save money on bandwidth
WhReact.FC equivalent for RSCIs there a "React.FC" equivalent for React Server Components?How do I use the return type of a function with overloads that will be returned in the same functionI'm creating a library, but I have a problem when I use a function with overloads to return itself i