Commit 955cc827 authored by Martin Groen's avatar Martin Groen Committed by Arunoda Susiripala

Serve static `/_next/static/*` relative from `dir` directory (#3722)

parent de6741f8
...@@ -241,7 +241,7 @@ export default class Server { ...@@ -241,7 +241,7 @@ export default class Server {
}, },
'/_next/static/:path*': async (req, res, params) => { '/_next/static/:path*': async (req, res, params) => {
const p = join(this.dist, 'static', ...(params.path || [])) const p = join(this.dir, this.dist, 'static', ...(params.path || []))
await this.serveStatic(req, res, p) await this.serveStatic(req, res, p)
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment