Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

hotfix: disable guide revalidation (#31948)

Charise6efee12e78a
diff --git a/apps/docs/app/guides/(with-sidebar)/layout.tsx b/apps/docs/app/guides/(with-sidebar)/layout.tsx
index 532645a070d..2824184e834 100644
--- a/apps/docs/app/guides/(with-sidebar)/layout.tsx
+++ b/apps/docs/app/guides/(with-sidebar)/layout.tsx
@@ -9,7 +9,7 @@ import { getAiPrompts } from './getting-started/ai-prompts/[slug]/AiPrompts.util
// Revalidate occasionally to pick up changes to partners
// 60 seconds/minute * 60 minutes/hour * 24 hours/day
-export const revalidate = 86_400
+// export const revalidate = 86_400
const GuidesLayout = async ({ children }: PropsWithChildren) => {
const [partnerNavItems, promptNavItems] = await Promise.all([getPartners(), getPrompts()])
diff --git a/apps/docs/app/guides/troubleshooting/[slug]/page.tsx b/apps/docs/app/guides/troubleshooting/[slug]/page.tsx
index 9e2a1471a8d..9fcd77530d1 100644
--- a/apps/docs/app/guides/troubleshooting/[slug]/page.tsx
+++ b/apps/docs/app/guides/troubleshooting/[slug]/page.tsx
@@ -5,7 +5,7 @@ import { getAllTroubleshootingEntries, getArticleSlug } from '~/features/docs/Tr
import { PROD_URL } from '~/lib/constants'
// 60 seconds/minute * 60 minutes/hour * 24 hours/day
-export const revalidate = 86_400
+// export const revalidate = 86_400
export const dynamicParams = false
export default async function TroubleshootingEntryPage({
diff --git a/apps/docs/app/guides/troubleshooting/page.tsx b/apps/docs/app/guides/troubleshooting/page.tsx
index ac0be072bfe..b9d65fed5ad 100644
--- a/apps/docs/app/guides/troubleshooting/page.tsx
+++ b/apps/docs/app/guides/troubleshooting/page.tsx
@@ -17,7 +17,7 @@ import { SidebarSkeleton } from '~/layouts/MainSkeleton'
import { PROD_URL } from '~/lib/constants'
// 60 seconds/minute * 60 minutes/hour * 24 hours/day
-export const revalidate = 86_400
+// export const revalidate = 86_400
export default async function GlobalTroubleshootingPage() {
const troubleshootingEntries = await getAllTroubleshootingEntries()
diff --git a/apps/docs/features/helpers.fetch.ts b/apps/docs/features/helpers.fetch.ts
index cb194482203..55f2de27a93 100644
--- a/apps/docs/features/helpers.fetch.ts
+++ b/apps/docs/features/helpers.fetch.ts
@@ -18,6 +18,9 @@ function fetchWithNextOptions({
return (info: RequestInfo) => fetch(info, { next, cache })
}
-const fetchRevalidatePerDay = fetchWithNextOptions({ next: { revalidate: ONE_DAY_IN_SECONDS } })
+// const fetchRevalidatePerDay = fetchWithNextOptions({ next: { revalidate: ONE_DAY_IN_SECONDS } })
+// [Charis 2024-12-28]
+// Temporarily disabling revalidation as a hotfix for Vercel NFT problem
+const fetchRevalidatePerDay = fetch
export { fetchWithNextOptions, fetchRevalidatePerDay }