diff --git a/pages/index.page.tsx b/pages/index.page.tsx index 77af97cad..1faaf1611 100644 --- a/pages/index.page.tsx +++ b/pages/index.page.tsx @@ -47,8 +47,17 @@ export const getStaticProps: GetStaticProps = async () => { 'https://calendar.google.com/calendar/ical/info%40json-schema.org/public/basic.ics'; const datesInfo = await fetchRemoteICalFile(remoteICalUrl) .then((icalData: any) => printEventsForNextWeeks(ical.parseICS(icalData))) - .catch((error) => console.error('Error:', error)); - return { props: { blogPosts, datesInfo, fallback: false } }; + .catch((error) => { + console.error('Error:', error); + return null; + }); + return { + props: { + blogPosts, + datesInfo, + fallback: false, + }, + }; }; export function AlgoliaSearch() { @@ -548,7 +557,7 @@ const Home = (props: any) => { Upcoming events