Skip to content

Commit

Permalink
Merge pull request #14197 from ethereum/hotfix-revalidate
Browse files Browse the repository at this point in the history
Hotfix disable `revalidate`
  • Loading branch information
wackerow authored Oct 20, 2024
2 parents 1bb22d7 + e27ae81 commit e1a8850
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<Props>

Expand Down
5 changes: 2 additions & 3 deletions src/pages/stablecoins.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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<Props>

Expand Down
5 changes: 2 additions & 3 deletions src/pages/staking/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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<Props>

Expand Down
4 changes: 2 additions & 2 deletions src/pages/wallets/find-wallet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import {
} from "@/lib/utils/wallets"

import {
BASE_TIME_UNIT,
DEFAULT_LOCALE,
NAV_BAR_PX_HEIGHT,
WALLETS_FILTERS_DEFAULT,
Expand Down Expand Up @@ -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<Props>

Expand Down

0 comments on commit e1a8850

Please sign in to comment.