The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
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.tsxindex 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_400const 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.tsxindex 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/Trimport { PROD_URL } from '~/lib/constants'// 60 seconds/minute * 60 minutes/hour * 24 hours/day-export const revalidate = 86_400+// export const revalidate = 86_400export const dynamicParams = falseexport default async function TroubleshootingEntryPage({diff --git a/apps/docs/app/guides/troubleshooting/page.tsx b/apps/docs/app/guides/troubleshooting/page.tsxindex 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_400export default async function GlobalTroubleshootingPage() {const troubleshootingEntries = await getAllTroubleshootingEntries()diff --git a/apps/docs/features/helpers.fetch.ts b/apps/docs/features/helpers.fetch.tsindex 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 = fetchexport { fetchWithNextOptions, fetchRevalidatePerDay }