1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

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

This commit is contained in:
Martin Groen 2018-02-07 19:35:35 +11:00 committed by Arunoda Susiripala
parent de6741f886
commit 955cc82736

View file

@ -241,7 +241,7 @@ export default class Server {
},
'/_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)
},