From f95be79e9aeec35d5cd22ec6c0bede161d6975fb Mon Sep 17 00:00:00 2001 From: Jaz White Date: Fri, 7 Jan 2022 14:09:20 -0500 Subject: [PATCH] Fix misspelling of "precedence" in log message (#34428) --- packages/gatsby/src/bootstrap/__tests__/redirects-writer.ts | 2 +- packages/gatsby/src/bootstrap/redirects-writer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/gatsby/src/bootstrap/__tests__/redirects-writer.ts b/packages/gatsby/src/bootstrap/__tests__/redirects-writer.ts index ada1749be3398..63a3b5fc5b091 100644 --- a/packages/gatsby/src/bootstrap/__tests__/redirects-writer.ts +++ b/packages/gatsby/src/bootstrap/__tests__/redirects-writer.ts @@ -108,7 +108,7 @@ describe(`redirect-writer`, () => { const warningMessage = reporterWarnMock.mock.calls[0][0] expect(warningMessage).toMatchInlineSnapshot(` - "There are routes that match both page and redirect. Pages take precendence over redirects so the redirect will not work: + "There are routes that match both page and redirect. Pages take precedence over redirects so the redirect will not work: - page: \\"/server-overlap\\" and redirect: \\"/server-overlap/\\" -> \\"/server-overlap/redirect/\\" - page: \\"/client-overlap/\\" and redirect: \\"/client-overlap\\" -> \\"/client-overlap/redirect/\\"" `) diff --git a/packages/gatsby/src/bootstrap/redirects-writer.ts b/packages/gatsby/src/bootstrap/redirects-writer.ts index d8879033a2bc6..e6db08c22df55 100644 --- a/packages/gatsby/src/bootstrap/redirects-writer.ts +++ b/packages/gatsby/src/bootstrap/redirects-writer.ts @@ -47,7 +47,7 @@ export const writeRedirects = async (): Promise => { if (redirectMatchingPageWarnings.length > 0) { reporter.warn( - `There are routes that match both page and redirect. Pages take precendence over redirects so the redirect will not work:\n${redirectMatchingPageWarnings.join( + `There are routes that match both page and redirect. Pages take precedence over redirects so the redirect will not work:\n${redirectMatchingPageWarnings.join( `\n` )}` )