From 1245699bb323f713d8d9eb646d8dd02a59950a9e Mon Sep 17 00:00:00 2001 From: Kyle Holmberg Date: Thu, 9 Nov 2023 22:20:15 +0700 Subject: [PATCH] Fix 404 page and podcast page (#1766) --- .../__snapshots__/CloseButton.test.js.snap | 2 +- .../__snapshots__/LinkButton.test.js.snap | 2 +- .../__snapshots__/ValueCard.test.js.snap | 2 +- .../__snapshots__/Content.test.js.snap | 2 +- components/ErrorDisplay/ErrorDisplay.js | 30 +++++++------------ .../__snapshots__/ErrorDisplay.test.js.snap | 28 ++++++++--------- .../FeaturedJobItem.test.js.snap | 4 +-- .../RegistrationForm.test.js.snap | 2 +- .../__snapshots__/Heading.test.js.snap | 2 +- .../__snapshots__/Modal.test.js.snap | 2 +- .../__snapshots__/OutboundLink.test.js.snap | 2 +- .../__snapshots__/JoinSection.test.js.snap | 4 +-- .../SocialMediaItem.test.js.snap | 4 +-- next.config.js | 2 ++ pages/podcast.js | 2 +- 15 files changed, 39 insertions(+), 51 deletions(-) diff --git a/components/Buttons/CloseButton/__tests__/__snapshots__/CloseButton.test.js.snap b/components/Buttons/CloseButton/__tests__/__snapshots__/CloseButton.test.js.snap index aa95868ce..76db662e5 100644 --- a/components/Buttons/CloseButton/__tests__/__snapshots__/CloseButton.test.js.snap +++ b/components/Buttons/CloseButton/__tests__/__snapshots__/CloseButton.test.js.snap @@ -9,7 +9,7 @@ exports[`CloseButton should render with just required props passed 1`] = ` type="button" > Close diff --git a/components/Buttons/LinkButton/__tests__/__snapshots__/LinkButton.test.js.snap b/components/Buttons/LinkButton/__tests__/__snapshots__/LinkButton.test.js.snap index 9541f2c75..99f0e0c8f 100644 --- a/components/Buttons/LinkButton/__tests__/__snapshots__/LinkButton.test.js.snap +++ b/components/Buttons/LinkButton/__tests__/__snapshots__/LinkButton.test.js.snap @@ -11,7 +11,7 @@ exports[`LinkButton should render with many props assigned 1`] = ` > Test Opens in new window diff --git a/components/Cards/ValueCard/__tests__/__snapshots__/ValueCard.test.js.snap b/components/Cards/ValueCard/__tests__/__snapshots__/ValueCard.test.js.snap index ae4fd3fea..5c29971f4 100644 --- a/components/Cards/ValueCard/__tests__/__snapshots__/ValueCard.test.js.snap +++ b/components/Cards/ValueCard/__tests__/__snapshots__/ValueCard.test.js.snap @@ -2,7 +2,7 @@ exports[`ValueCard should render with required props 1`] = `
+

+ We're so ashamed. You definitely weren't supposed to see this... +

`; diff --git a/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap b/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap index 7411bbc94..556391206 100644 --- a/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap +++ b/components/FeaturedJobItem/__tests__/__snapshots__/FeaturedJobItem.test.js.snap @@ -15,7 +15,7 @@ exports[`FeaturedJobItem should render with many props assigned 1`] = ` Experienced React Engineer Opens in new window @@ -99,7 +99,7 @@ exports[`FeaturedJobItem should render with required props 1`] = ` DevOps Engineer Opens in new window diff --git a/components/Forms/RegistrationForm/__tests__/__snapshots__/RegistrationForm.test.js.snap b/components/Forms/RegistrationForm/__tests__/__snapshots__/RegistrationForm.test.js.snap index 44bf5727a..313d7fc58 100644 --- a/components/Forms/RegistrationForm/__tests__/__snapshots__/RegistrationForm.test.js.snap +++ b/components/Forms/RegistrationForm/__tests__/__snapshots__/RegistrationForm.test.js.snap @@ -247,7 +247,7 @@ exports[`RegistrationForm should render with required props 1`] = ` > Operation Code's Code of Conduct. Opens in new window diff --git a/components/Heading/__tests__/__snapshots__/Heading.test.js.snap b/components/Heading/__tests__/__snapshots__/Heading.test.js.snap index 7290ab75f..d62cf2c5d 100644 --- a/components/Heading/__tests__/__snapshots__/Heading.test.js.snap +++ b/components/Heading/__tests__/__snapshots__/Heading.test.js.snap @@ -29,7 +29,7 @@ exports[`Heading should render with required props 1`] = ` id="test-link" > Scroll Link for diff --git a/components/Modal/__tests__/__snapshots__/Modal.test.js.snap b/components/Modal/__tests__/__snapshots__/Modal.test.js.snap index 9b70d8c2c..69d216e17 100644 --- a/components/Modal/__tests__/__snapshots__/Modal.test.js.snap +++ b/components/Modal/__tests__/__snapshots__/Modal.test.js.snap @@ -29,7 +29,7 @@ exports[`Modal should render with many props assigned 1`] = ` type="button" > Close diff --git a/components/OutboundLink/__tests__/__snapshots__/OutboundLink.test.js.snap b/components/OutboundLink/__tests__/__snapshots__/OutboundLink.test.js.snap index 6a494035b..bb7f1f783 100644 --- a/components/OutboundLink/__tests__/__snapshots__/OutboundLink.test.js.snap +++ b/components/OutboundLink/__tests__/__snapshots__/OutboundLink.test.js.snap @@ -10,7 +10,7 @@ exports[`OutboundLink should render with required props 1`] = ` > Test Opens in new window diff --git a/components/ReusableSections/JoinSection/__tests__/__snapshots__/JoinSection.test.js.snap b/components/ReusableSections/JoinSection/__tests__/__snapshots__/JoinSection.test.js.snap index bc7045826..9a6b40eb9 100644 --- a/components/ReusableSections/JoinSection/__tests__/__snapshots__/JoinSection.test.js.snap +++ b/components/ReusableSections/JoinSection/__tests__/__snapshots__/JoinSection.test.js.snap @@ -24,7 +24,7 @@ exports[`JoinSection should render 1`] = ` id="join-our-thriving-community-link" > Scroll Link for @@ -61,7 +61,7 @@ exports[`JoinSection should render 1`] = ` > Never heard of Slack before? Opens in new window diff --git a/components/SocialMedia/SocialMediaItem/__tests__/__snapshots__/SocialMediaItem.test.js.snap b/components/SocialMedia/SocialMediaItem/__tests__/__snapshots__/SocialMediaItem.test.js.snap index ab8b7d4bb..af8bb8564 100644 --- a/components/SocialMedia/SocialMediaItem/__tests__/__snapshots__/SocialMediaItem.test.js.snap +++ b/components/SocialMedia/SocialMediaItem/__tests__/__snapshots__/SocialMediaItem.test.js.snap @@ -12,7 +12,7 @@ exports[`SocialMediaItem should render with required props 1`] = ` target="_blank" > Operation Code's @@ -20,7 +20,7 @@ exports[`SocialMediaItem should render with required props 1`] = ` Opens in new window diff --git a/next.config.js b/next.config.js index 80202514d..20b7bb7b6 100644 --- a/next.config.js +++ b/next.config.js @@ -36,6 +36,8 @@ const nextConfig = { s3hostName, 'user-images.githubusercontent.com', 'ssl-static.libsyn.com', + 'static.libsyn.com', + 'libsyn.com', 'i.ytimg.com', ], }, diff --git a/pages/podcast.js b/pages/podcast.js index 6bcf175e0..4670d5b16 100644 --- a/pages/podcast.js +++ b/pages/podcast.js @@ -44,7 +44,7 @@ export async function getStaticProps() { return { props: { episodes }, revalidate: ONE_DAY }; } - // Request failed or RSS Feed is broken + // Request failed or RSS Feed is broken... Break the build! throw new Error('getStaticProps in /podcast failed.'); }