Skip to content

Commit

Permalink
chore: does this fix node 10 test
Browse files Browse the repository at this point in the history
  • Loading branch information
lindsaylevine committed Jun 2, 2021
1 parent 3160962 commit c1e09f3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/lib/steps/setupRedirects.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ const setupRedirects = async (publishPath) => {
const basePathSortFunc = (a, b) => {
if (a.target.includes(basePath) && b.target.includes(basePath)) {
return 0
} if (a.target.includes(basePath) && !b.target.includes(basePath)) {
}
if (a.target.includes(basePath) && !b.target.includes(basePath)) {
return -1
// } else if (!a.target.includes(basePath) && b.target.includes(basePath)) {
// return 0
}
return 1

// } else if (!a.target.includes(basePath) && b.target.includes(basePath)) {
// return 0
}
return 1
}
const allRedirects = hasBasePath
? [...sortedStaticRedirects.sort(basePathSortFunc), ...sortedDynamicRedirects.sort(basePathSortFunc)]
Expand Down

0 comments on commit c1e09f3

Please sign in to comment.