mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Serve static /_next/static/*
relative from dir
directory (#3722)
This commit is contained in:
parent
de6741f886
commit
955cc82736
|
@ -241,7 +241,7 @@ export default class Server {
|
|||
},
|
||||
|
||||
'/_next/static/:path*': async (req, res, params) => {
|
||||
const p = join(this.dist, 'static', ...(params.path || []))
|
||||
const p = join(this.dir, this.dist, 'static', ...(params.path || []))
|
||||
await this.serveStatic(req, res, p)
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue