Skip to content

Commit

Permalink
fix order condition to improve performance a little bit (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca authored Jul 13, 2023
1 parent 4dad719 commit 92861f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ export default function loader(
// In case that there aren't /_app.js we want to overwrite the default _app
// to provide the I18Provider on top.
if (
normalizedResourcePath.includes('node_modules/next/dist/pages/_app') &&
!hasAppJs
!hasAppJs &&
normalizedResourcePath.includes('node_modules/next/dist/pages/_app')
) {
return getDefaultAppJs(existLocalesFolder)
}
Expand Down

0 comments on commit 92861f6

Please sign in to comment.