The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix(www): skip the careers-page globe when WebGL is unavailable (#50350)
claude[bot]c3ccf9179fae
diff --git a/apps/www/components/Globe.tsx b/apps/www/components/Globe.tsxindex 933080d908e..39f190e5d04 100644--- a/apps/www/components/Globe.tsx+++ b/apps/www/components/Globe.tsx@@ -2,11 +2,25 @@ import createGlobe from 'cobe'import { useTheme } from 'next-themes'import { useEffect, useRef } from 'react'+// cobe crashes internally when neither webgl2 nor webgl is available instead+// of failing gracefully, so we check ourselves before mounting it.+const isWebGLAvailable = (canvas: HTMLCanvasElement) => {+ try {+ return !!(canvas.getContext('webgl2') || canvas.getContext('webgl'))+ } catch {+ return false+ }+}+const Globe = () => {const { resolvedTheme } = useTheme()const canvasRef = useRef<any | null>(null)useEffect(() => {+ if (!canvasRef.current || !isWebGLAvailable(canvasRef.current)) {+ return+ }+let rotation = 0let width = 0let previousWidth = 0