> redirecting to the sign-in page if you don’t have a session
Is this not access control?
Is this not access control?
The takeaway is that you should not do it. You should never use Next.js if you ever has somehting that is not supposed to be public for everyone.
No serious company uses Next.js after all the recent major security issues, at least not if they have and respect users data.