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:
parent
d3518242a6
commit
4757836a67
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue