Skip to content

Commit

Permalink
Remove '/playground*' route handling (github#21821)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesMGreene authored Sep 30, 2021
1 parent aed6c16 commit 9a9b418
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions middleware/next.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ await nextApp.prepare()
function renderPageWithNext(req, res, next) {
const isNextDataRequest = req.path.startsWith('/_next') && !req.path.startsWith('/_next/data')

// /playground is for playground static assets
if (isNextDataRequest || req.path.startsWith('/playground')) {
if (isNextDataRequest) {
return nextHandleRequest(req, res)
}

Expand Down

0 comments on commit 9a9b418

Please sign in to comment.