From 955cc82736f6e1e3913a8d94d549e40e5cf296d0 Mon Sep 17 00:00:00 2001 From: Martin Groen Date: Wed, 7 Feb 2018 19:35:35 +1100 Subject: [PATCH] Serve static `/_next/static/*` relative from `dir` directory (#3722) --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 633c3d83..46b15b3a 100644 --- a/server/index.js +++ b/server/index.js @@ -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) },