M Whitaker
M Whitaker
NNuxt
Created by M Whitaker on 4/3/2024 in #❓・help
Protecting static folder on server side
I have a folder with statically built HTML, CSS and JS assets (think static dashboard) that I would like to protect using sessions. I don't know the HTML files ahead of time, so I am hoping that there is a way to serve and protect a whole folder. I tried using serveStatic from h3, but got confused on how to actually implement that and how it fits into the Nuxt 3 file-based routing. Any pointers would be appreciated!
7 replies