Skip to content

Commit 5afa599

Browse files
authored
Revert unrelated changes
1 parent 417ceda commit 5afa599

File tree

4 files changed

+10
-15
lines changed

4 files changed

+10
-15
lines changed

src/pages/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ import { getLocaleTimestamp } from "@/lib/utils/time"
6767
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
6868

6969
import {
70+
BASE_TIME_UNIT,
7071
BLOG_FEEDS,
7172
BLOGS_WITHOUT_FEED,
7273
CALENDAR_DISPLAY_COUNT,
@@ -192,8 +193,7 @@ export const getStaticProps = (async ({ locale }) => {
192193
metricResults,
193194
rssData: { rssItems, blogLinks },
194195
},
195-
// TODO: re-enable revalidation once we have a workaround for failing builds
196-
// revalidate: BASE_TIME_UNIT * 24,
196+
revalidate: REVALIDATE_TIME,
197197
}
198198
}) satisfies GetStaticProps<Props>
199199

src/pages/stablecoins.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
4545
import { getLocaleTimestamp } from "@/lib/utils/time"
4646
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
4747

48+
import { BASE_TIME_UNIT } from "@/lib/constants"
49+
4850
import {
4951
fetchEthereumEcosystemData,
5052
fetchEthereumStablecoinsData,
@@ -190,8 +192,7 @@ export const getStaticProps = (async ({ locale }) => {
190192
marketsHasError,
191193
},
192194
// Updated once a week
193-
// TODO: re-enable revalidation once we have a workaround for failing builds
194-
// revalidate: BASE_TIME_UNIT * 24 * 7,
195+
revalidate: REVALIDATE_TIME,
195196
}
196197
}) satisfies GetStaticProps<Props>
197198

src/pages/staking/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import { getLastDeployDate } from "@/lib/utils/getLastDeployDate"
4040
import { getLocaleTimestamp } from "@/lib/utils/time"
4141
import { getRequiredNamespacesForPage } from "@/lib/utils/translations"
4242

43+
import { BASE_TIME_UNIT } from "@/lib/constants"
44+
4345
import rhino from "@/public/images/upgrades/upgrade_rhino.png"
4446

4547
type BenefitsType = {
@@ -180,8 +182,7 @@ export const getStaticProps = (async ({ locale }) => {
180182
lastDeployLocaleTimestamp,
181183
},
182184
// Updated once a day
183-
// TODO: re-enable revalidation once we have a workaround for failing builds
184-
// revalidate: BASE_TIME_UNIT * 24,
185+
revalidate: REVALIDATE_TIME,
185186
}
186187
}) satisfies GetStaticProps<Props>
187188

src/pages/wallets/find-wallet.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,7 @@ import {
2727
getSupportedLocaleWallets,
2828
} from "@/lib/utils/wallets"
2929

30-
import {
31-
DEFAULT_LOCALE,
32-
NAV_BAR_PX_HEIGHT,
33-
WALLETS_FILTERS_DEFAULT,
34-
} from "@/lib/constants"
35-
36-
import { useWalletPersonas } from "../../hooks/useWalletPersonas"
30+
import { BASE_TIME_UNIT } from "@/lib/constants"
3731

3832
import HeroImage from "@/public/images/wallets/wallet-hero.png"
3933

@@ -86,8 +80,7 @@ export const getStaticProps = (async ({ locale }) => {
8680
wallets,
8781
},
8882
// Updated once a day
89-
// TODO: re-enable revalidation once we have a workaround for failing builds
90-
// revalidate: BASE_TIME_UNIT * 24,
83+
revalidate: BASE_TIME_UNIT * 24,
9184
}
9285
}) satisfies GetStaticProps<Props>
9386

0 commit comments

Comments
 (0)