app.use("/*", serveStatic({ root: "./static"}))
For making all files in /static accessabil, starting with the /-path in the URL.
The serveStatic
function depends on the adapter used.
Jul 19, 20251 min read
app.use("/*", serveStatic({ root: "./static"}))
For making all files in /static accessabil, starting with the /-path in the URL.
The serveStatic
function depends on the adapter used.