DEV Community

Mayank
Mayank

Posted on

How to put static files such as videos behind auth in next.js webapp?

I want to serve some static content such as videos only to the visitors who are authorized. Routes can be secured and exposed only when user is authenticated. However, when showing video in that page, we need to keep it in public folder, which can be accessed without requirement of…

Top comments (0)