The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(docs): local dev for troubleshooting sections (#31228)
Charis9c4f24d16da7
diff --git a/apps/docs/features/docs/Troubleshooting.utils.ts b/apps/docs/features/docs/Troubleshooting.utils.tsindex 2f858fcd9dd..6dc915d8628 100644--- a/apps/docs/features/docs/Troubleshooting.utils.ts+++ b/apps/docs/features/docs/Troubleshooting.utils.ts@@ -2,6 +2,7 @@ import { cache } from 'react'import { z } from 'zod'import { cache_fullProcess_withDevCacheBust } from '~/features/helpers.fs'+import { IS_PLATFORM } from '~/lib/constants'import { supabaseAdmin } from '~/lib/supabaseAdmin'import {getAllTroubleshootingEntriesInternal,@@ -88,6 +89,10 @@ export async function getAllTroubleshootingErrors() {}async function getTroubleshootingUpdatedDatesInternal() {+ if (!IS_PLATFORM) {+ return new Map<string, Date>()+ }+const databaseIds = (await getAllTroubleshootingEntries()).map((entry) => entry.data.database_id).filter((id) => !id.startsWith('pseudo-'))