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:
commit
7965cb299d
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue