File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,13 @@ const setupRedirects = async (publishPath) => {
7474 const basePathSortFunc = ( a , b ) => {
7575 if ( a . target . includes ( basePath ) && b . target . includes ( basePath ) ) {
7676 return 0
77- } if ( a . target . includes ( basePath ) && ! b . target . includes ( basePath ) ) {
77+ }
78+ if ( a . target . includes ( basePath ) && ! b . target . includes ( basePath ) ) {
7879 return - 1
79- // } else if (!a.target.includes(basePath) && b.target.includes(basePath)) {
80- // return 0
81- }
82- return 1
83-
80+ // } else if (!a.target.includes(basePath) && b.target.includes(basePath)) {
81+ // return 0
82+ }
83+ return 1
8484 }
8585 const allRedirects = hasBasePath
8686 ? [ ...sortedStaticRedirects . sort ( basePathSortFunc ) , ...sortedDynamicRedirects . sort ( basePathSortFunc ) ]
You can’t perform that action at this time.
0 commit comments