Skip to content

Commit

Permalink
Merge branch 'redirects-ssg' into redirects-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored May 30, 2023
2 parents 3770cab + a39eb51 commit 6581d38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ describe('SSG - Redirects', () => {
let redirects = await fixture.readFile('/_redirects');
let parts = redirects.split(/\s+/);
expect(parts).to.deep.equal([
'/other', '/', '301',
// This uses the dynamic Astro.redirect, so we don't know that it's a redirect
// until runtime. This is correct!
'/nope', '/.netlify/functions/entry', '200',
'/', '/.netlify/functions/entry', '200',
'/other', '/', '301',

// A real route
'/team/articles/*', '/.netlify/functions/entry', '200',
Expand Down

0 comments on commit 6581d38

Please sign in to comment.