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

Expose manifest.js.map during development (#3975)

This commit is contained in:
Tomas Roos 2018-03-09 12:23:21 +01:00 committed by Tim Neutkens
parent d3518242a6
commit 4757836a67

View file

@ -166,6 +166,14 @@ export default class Server {
await this.serveStatic(req, res, p)
},
'/_next/:buildId/manifest.js.map': async (req, res, params) => {
if (!this.dev) return this.send404(res)
this.handleBuildId(params.buildId, res)
const p = join(this.dir, this.dist, 'manifest.js.map')
await this.serveStatic(req, res, p)
},
'/_next/:buildId/main.js': async (req, res, params) => {
if (this.dev) {
this.handleBuildId(params.buildId, res)