Commit b3743146 authored by Tim Neutkens's avatar Tim Neutkens Committed by Guillermo Rauch

Move on-demand-entries-ping to _next namespace (#1305)

parent 01fa65d4
......@@ -5,7 +5,7 @@ import fetch from 'unfetch'
async function ping () {
try {
const url = `/on-demand-entries-ping?page=${Router.pathname}`
const url = `/_next/on-demand-entries-ping?page=${Router.pathname}`
const res = await fetch(url)
const payload = await res.json()
if (payload.invalid) {
......
......@@ -103,7 +103,7 @@ export default function onDemandEntryHandler (devMiddleware, compiler, {
middleware () {
return function (req, res, next) {
if (!/^\/on-demand-entries-ping/.test(req.url)) return next()
if (!/^\/_next\/on-demand-entries-ping/.test(req.url)) return next()
const { query } = parse(req.url, true)
const page = normalizePage(query.page)
......
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