this is a good example of protected routes in a middleware. There's one downside on Nextjs Middleware and is that if you need to check other things there like using next-i18n-router package to handle translations then you need to choose one or the other. Would you create a video showing how to do something like that? How to use the same response? I could not find a way to make this work to be honest
For anyone using the src folder structure the middleware.js/ts file should be inside the src not in the root
THANK YOU
Thank you so much for your valuable information about protected route ❤. This is a awesome and informative video 💯
Awesome bro😍
this is a good example of protected routes in a middleware. There's one downside on Nextjs Middleware and is that if you need to check other things there like using next-i18n-router package to handle translations then you need to choose one or the other. Would you create a video showing how to do something like that? How to use the same response? I could not find a way to make this work to be honest
is there any source code of it ? just for reference
good work, bravo