-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(gatsby): handle case of removing trailing slash in inc builds (#2…
…9953) * add test case * add one more edge case to tests * add more assertions * fix(gatsby): [incremental builds] handle case of page path changing during or between builds that wouldn't result in change of artifact filenames this is to cover for cases like `gatsby-plugin-remove-trailing-slashes` that change page path during the build or case when page path might be created from some cms content and trailing slash being added or removed there * make normalizePagePath terser * initial setup for calcDirtyHtmlFiles unit tests * flesh out tests
- Loading branch information
Showing
8 changed files
with
463 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
integration-tests/artifacts/src/pages/page-that-will-have-trailing-slash-removed.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import * as React from "react" | ||
|
||
export default function NoTrailingSlashPage({ path, pathname }) { | ||
return <div>I don't have trailing slash</div> | ||
} |
Oops, something went wrong.