Unverified Commit b39b44ac authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Remove obsolete route (#5092)

This route is no longer needed
parent 9abbea85
...@@ -184,11 +184,6 @@ export default class Server { ...@@ -184,11 +184,6 @@ export default class Server {
// (but it should support as many as params, seperated by '/') // (but it should support as many as params, seperated by '/')
// Othewise this will lead to a pretty simple DOS attack. // Othewise this will lead to a pretty simple DOS attack.
// See more: https://github.com/zeit/next.js/issues/2617 // See more: https://github.com/zeit/next.js/issues/2617
routes['/_next/:path*'] = async (req, res, params) => {
const p = join(__dirname, '..', 'client', ...(params.path || []))
await this.serveStatic(req, res, p)
}
routes['/:path*'] = async (req, res, params, parsedUrl) => { routes['/:path*'] = async (req, res, params, parsedUrl) => {
const { pathname, query } = parsedUrl const { pathname, query } = parsedUrl
await this.render(req, res, pathname, query, parsedUrl) await this.render(req, res, pathname, query, parsedUrl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment