Commit 7965cb29 authored by Arunoda Susiripala's avatar Arunoda Susiripala

Merge master into v3-beta.

parents 06d42b99 e319b4fd
...@@ -199,12 +199,12 @@ export default class Server { ...@@ -199,12 +199,12 @@ export default class Server {
await renderScript(req, res, page, this.renderOpts) await renderScript(req, res, page, this.renderOpts)
}, },
'/_next/:path+': async (req, res, params) => { '/_next/:path?': async (req, res, params) => {
const p = join(__dirname, '..', 'client', ...(params.path || [])) const p = join(__dirname, '..', 'client', ...(params.path || []))
await this.serveStatic(req, res, p) await this.serveStatic(req, res, p)
}, },
'/static/:path+': async (req, res, params) => { '/static/:path?': async (req, res, params) => {
const p = join(this.dir, 'static', ...(params.path || [])) const p = join(this.dir, '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