1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

fix: page-loader load script path (#3455)

This commit is contained in:
Maciej Kasprzyk 2017-12-14 23:01:54 +01:00 committed by Arunoda Susiripala
parent a3aa870b74
commit 4a3aa261d6

View file

@ -72,7 +72,7 @@ export default class PageLoader {
let scriptRoute = route
if (__NEXT_DATA__.nextExport) {
scriptRoute = route === '/' ? '/index.js' : `${route}/index.js`
scriptRoute = route === '/' ? '/index.js' : `${route}.js`
}
const script = document.createElement('script')