The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Revert "Revert "perf: preconnect to API domain"" (#41067)
Alaister Young87bc0d23fbe8
diff --git a/apps/studio/pages/_app.tsx b/apps/studio/pages/_app.tsxindex 124028c19fd..0336be2e13c 100644--- a/apps/studio/pages/_app.tsx+++ b/apps/studio/pages/_app.tsx@@ -139,6 +139,14 @@ function CustomApp({ Component, pageProps }: AppPropsWithLayout) {__html: `:root{--font-custom:${customFont.style.fontFamily};--font-source-code-pro:${sourceCodePro.style.fontFamily};}`,}}/>+ {/* Speed up initial API loading times by pre-connecting to the API domain */}+ {IS_PLATFORM && (+ <link+ rel="preconnect"+ href={new URL(API_URL).origin}+ crossOrigin="use-credentials"+ />+ )}</Head><MetaFaviconsPagesRouter applicationName="Supabase Studio" includeManifest /><TooltipProvider delayDuration={0}>