The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
ci(docs): skip preview ssg for storage section (#35337)
Charisa8a256e21f48
diff --git a/apps/docs/app/guides/realtime/[[...slug]]/page.tsx b/apps/docs/app/guides/realtime/[[...slug]]/page.tsxindex ef9cd4969f9..79e91ca9222 100644--- a/apps/docs/app/guides/realtime/[[...slug]]/page.tsx+++ b/apps/docs/app/guides/realtime/[[...slug]]/page.tsx@@ -1,3 +1,4 @@+import { IS_PROD } from 'common'import { GuideTemplate } from '~/features/docs/GuidesMdx.template'import {genGuideMeta,@@ -15,12 +16,7 @@ const RealtimeGuidePage = async ({ params }: { params: Params }) => {return <GuideTemplate {...data!} />}-const generateStaticParams =- // [Charis 2025-04-21] For some reason, using the IS_PROD export from common- // does not work (its type is a function when this is evaluated?)- process.env.NEXT_PUBLIC_VERCEL_ENV === 'production'- ? genGuidesStaticParams('realtime')- : getEmptyArray+const generateStaticParams = IS_PROD ? genGuidesStaticParams('realtime') : getEmptyArrayconst generateMetadata = genGuideMeta((params: { slug?: string[] }) =>getGuidesMarkdown(['realtime', ...(params.slug ?? [])]))diff --git a/apps/docs/app/guides/storage/[[...slug]]/page.tsx b/apps/docs/app/guides/storage/[[...slug]]/page.tsxindex bf1754495ac..0f379466f54 100644--- a/apps/docs/app/guides/storage/[[...slug]]/page.tsx+++ b/apps/docs/app/guides/storage/[[...slug]]/page.tsx@@ -1,11 +1,11 @@+import { IS_PROD } from 'common'+import { GuideTemplate } from '~/features/docs/GuidesMdx.template'import {- getGuidesMarkdown,genGuideMeta,genGuidesStaticParams,+ getGuidesMarkdown,} from '~/features/docs/GuidesMdx.utils'-import { GuideTemplate } from '~/features/docs/GuidesMdx.template'--export const dynamicParams = false+import { getEmptyArray } from '~/features/helpers.fn'type Params = { slug?: string[] }@@ -16,10 +16,10 @@ const StorageGuidePage = async ({ params }: { params: Params }) => {return <GuideTemplate {...data!} />}-const generateStaticParams = genGuidesStaticParams('storage')+const generateStaticParams = IS_PROD ? genGuidesStaticParams('storage') : getEmptyArrayconst generateMetadata = genGuideMeta((params: { slug?: string[] }) =>getGuidesMarkdown(['storage', ...(params.slug ?? [])]))export default StorageGuidePage-export { generateStaticParams, generateMetadata }+export { generateMetadata, generateStaticParams }