Skip to content

Commit

Permalink
Merge branch 'update/spr-data-route' of github.com:ijjk/next.js into …
Browse files Browse the repository at this point in the history
…update/spr-data-route
  • Loading branch information
ijjk committed Oct 10, 2019
2 parents 85826e8 + d046c6f commit 996ef5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ const nextServerlessLoader: loader.Loader = function() {
if (req.url.match(/_next\\/data/)) {
sprData = true
req.url = req.url
.replace(new RegExp('\\/_next\\/data\\/${escapedBuildId}\\/'), '/')
.replace(new RegExp('/_next/data/${escapedBuildId}/'), '/')
.replace(/\\.json$/, '')
}
const parsedUrl = parse(req.url, true)
Expand Down

0 comments on commit 996ef5f

Please sign in to comment.