Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 8cb0c6e

Browse files
remove the temporary splat workaround now that internal fix is released (#67)
1 parent 7d1fd5e commit 8cb0c6e

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

lib/steps/setupRedirects.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,6 @@ const setupRedirects = () => {
7373
redirects.splice(rootCatchAllIndex, 0, "/_next/* /_next/:splat 200");
7474
}
7575

76-
// Add workaround for pre-traffic mesh cookie-based redirects
77-
// TO-DO: remove when internal netlify bug is resolved
78-
if (nextRedirects.length >= 1) redirects.push("/* /:splat 200");
79-
8076
// Write redirects to _redirects file
8177
writeFileSync(join(NETLIFY_PUBLISH_PATH, "_redirects"), redirects.join("\n"));
8278
};

tests/__snapshots__/defaults.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,5 @@ exports[`Routing creates Netlify redirects 1`] = `
4242
/getStaticProps/withRevalidate/withFallback/:id /.netlify/functions/next_getStaticProps_withRevalidate_withFallback_id 200
4343
/shows/:id /.netlify/functions/next_shows_id 200
4444
/shows/:params/* /.netlify/functions/next_shows_params 200
45-
/static/:id /static/[id].html 200
46-
/* /:splat 200"
45+
/static/:id /static/[id].html 200"
4746
`;

tests/__snapshots__/optionalCatchAll.test.js.snap

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ exports[`Routing creates Netlify redirects 1`] = `
88
/page /.netlify/functions/next_page 200
99
/ /.netlify/functions/next_all 200
1010
/_next/* /_next/:splat 200
11-
/* /.netlify/functions/next_all 200
12-
/* /:splat 200"
11+
/* /.netlify/functions/next_all 200"
1312
`;

0 commit comments

Comments
 (0)