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.
Jun 06, 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.