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

Merge master into v3-beta.

This commit is contained in:
Arunoda Susiripala 2017-07-24 10:10:29 +05:30
commit 7965cb299d

View file

@ -199,12 +199,12 @@ export default class Server {
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 || []))
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 || []))
await this.serveStatic(req, res, p)
}