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:
parent
a3aa870b74
commit
4a3aa261d6
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue