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.
Oct 23, 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.