From 3825eb3d169c0fd94b9813082ca301ae7d17449b Mon Sep 17 00:00:00 2001 From: Pablo Pettinari Date: Wed, 16 Oct 2024 11:55:02 +0200 Subject: [PATCH 1/4] disable ethstaker feed --- src/lib/constants.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index df5f68b4176..763395f006b 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -183,10 +183,12 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [ href: "https://ethpandaops.io/posts/", feed: "https://ethpandaops.io/posts/index.xml", }, - { - href: "https://ethstaker.cc/blog", - feed: "https://paragraph.xyz/api/blogs/rss/@ethstaker", - }, + // TODO: The endpoint is behind Vercel security checkpoint. Add back when + // we can fetch the xml feed without hitting the checkpoint. + // { + // href: "https://ethstaker.cc/blog", + // feed: "https://paragraph.xyz/api/blogs/rss/@ethstaker", + // }, { href: "https://0xparc.org/blog", feed: _0X_PARC_FEED, From 4c370c5d31589e84e3110dacd646a1a1436a2a09 Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Wed, 16 Oct 2024 08:14:06 -0700 Subject: [PATCH 2/4] chore: list EthStaker blog link only, without feed --- src/lib/constants.ts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 763395f006b..9dbfaa1b428 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -183,12 +183,16 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [ href: "https://ethpandaops.io/posts/", feed: "https://ethpandaops.io/posts/index.xml", }, - // TODO: The endpoint is behind Vercel security checkpoint. Add back when - // we can fetch the xml feed without hitting the checkpoint. - // { - // href: "https://ethstaker.cc/blog", - // feed: "https://paragraph.xyz/api/blogs/rss/@ethstaker", - // }, + { + href: "https://ethstaker.cc/blog", + /** + * TODO: The endpoint is behind Vercel security checkpoint. Add "feed" field + * back when we can fetch the xml feed without hitting the checkpoint, and + * remove custom "name" field. + */ + // feed: "https://paragraph.xyz/api/blogs/rss/@ethstaker", + name: "EthStaker Blog", + }, { href: "https://0xparc.org/blog", feed: _0X_PARC_FEED, From f8bf75298ceff653aa75191cf7be1288d04fd90d Mon Sep 17 00:00:00 2001 From: Paul Wackerow <54227730+wackerow@users.noreply.github.com> Date: Thu, 17 Oct 2024 10:07:01 -0700 Subject: [PATCH 3/4] fix: ethstaker blog xml feed --- src/lib/constants.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 9dbfaa1b428..3984d7922b9 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -185,13 +185,7 @@ export const COMMUNITY_BLOGS: CommunityBlog[] = [ }, { href: "https://ethstaker.cc/blog", - /** - * TODO: The endpoint is behind Vercel security checkpoint. Add "feed" field - * back when we can fetch the xml feed without hitting the checkpoint, and - * remove custom "name" field. - */ - // feed: "https://paragraph.xyz/api/blogs/rss/@ethstaker", - name: "EthStaker Blog", + feed: "https://raw.githubusercontent.com/eth-educators/github-actions/refs/heads/main/_data/blog_data.xml", }, { href: "https://0xparc.org/blog", From e27ae811adc06376a4004c6d33b96ff5f89fa5b8 Mon Sep 17 00:00:00 2001 From: Pablo Pettinari Date: Sun, 20 Oct 2024 12:00:14 +0200 Subject: [PATCH 4/4] disable revalidation --- src/pages/index.tsx | 4 ++-- src/pages/stablecoins.tsx | 5 ++--- src/pages/staking/index.tsx | 5 ++--- src/pages/wallets/find-wallet.tsx | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 8056dfba0f1..93b655ff9c8 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -67,7 +67,6 @@ import { getLocaleTimestamp } from "@/lib/utils/time" import { getRequiredNamespacesForPage } from "@/lib/utils/translations" import { - BASE_TIME_UNIT, BLOG_FEEDS, BLOGS_WITHOUT_FEED, CALENDAR_DISPLAY_COUNT, @@ -174,7 +173,8 @@ export const getStaticProps = (async ({ locale }) => { metricResults, rssData: { rssItems, blogLinks }, }, - revalidate: BASE_TIME_UNIT * 24, + // TODO: re-enable revalidation once we have a workaround for failing builds + // revalidate: BASE_TIME_UNIT * 24, } }) satisfies GetStaticProps diff --git a/src/pages/stablecoins.tsx b/src/pages/stablecoins.tsx index a0f7b266637..0adda864981 100644 --- a/src/pages/stablecoins.tsx +++ b/src/pages/stablecoins.tsx @@ -44,8 +44,6 @@ import { runOnlyOnce } from "@/lib/utils/runOnlyOnce" import { getLocaleTimestamp } from "@/lib/utils/time" import { getRequiredNamespacesForPage } from "@/lib/utils/translations" -import { BASE_TIME_UNIT } from "@/lib/constants" - import { fetchEthereumEcosystemData, fetchEthereumStablecoinsData, @@ -189,7 +187,8 @@ export const getStaticProps = (async ({ locale }) => { marketsHasError, }, // Updated once a week - revalidate: BASE_TIME_UNIT * 24 * 7, + // TODO: re-enable revalidation once we have a workaround for failing builds + // revalidate: BASE_TIME_UNIT * 24 * 7, } }) satisfies GetStaticProps diff --git a/src/pages/staking/index.tsx b/src/pages/staking/index.tsx index ab418a02e45..02be741926c 100644 --- a/src/pages/staking/index.tsx +++ b/src/pages/staking/index.tsx @@ -40,8 +40,6 @@ import { runOnlyOnce } from "@/lib/utils/runOnlyOnce" import { getLocaleTimestamp } from "@/lib/utils/time" import { getRequiredNamespacesForPage } from "@/lib/utils/translations" -import { BASE_TIME_UNIT } from "@/lib/constants" - import rhino from "@/public/images/upgrades/upgrade_rhino.png" type BenefitsType = { @@ -176,7 +174,8 @@ export const getStaticProps = (async ({ locale }) => { lastDeployLocaleTimestamp, }, // Updated once a day - revalidate: BASE_TIME_UNIT * 24, + // TODO: re-enable revalidation once we have a workaround for failing builds + // revalidate: BASE_TIME_UNIT * 24, } }) satisfies GetStaticProps diff --git a/src/pages/wallets/find-wallet.tsx b/src/pages/wallets/find-wallet.tsx index 34eb5c8491f..de2692c15b5 100644 --- a/src/pages/wallets/find-wallet.tsx +++ b/src/pages/wallets/find-wallet.tsx @@ -32,7 +32,6 @@ import { } from "@/lib/utils/wallets" import { - BASE_TIME_UNIT, DEFAULT_LOCALE, NAV_BAR_PX_HEIGHT, WALLETS_FILTERS_DEFAULT, @@ -93,7 +92,8 @@ export const getStaticProps = (async ({ locale }) => { wallets, }, // Updated once a day - revalidate: BASE_TIME_UNIT * 24, + // TODO: re-enable revalidation once we have a workaround for failing builds + // revalidate: BASE_TIME_UNIT * 24, } }) satisfies GetStaticProps