The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: use cjs for syntax highlighting imports
Alaister Young61e2821485df
diff --git a/www/components/CodeBlock/CodeBlock.tsx b/www/components/CodeBlock/CodeBlock.tsxindex 378ba2ea88e..7d58ba65952 100644--- a/www/components/CodeBlock/CodeBlock.tsx+++ b/www/components/CodeBlock/CodeBlock.tsx@@ -6,10 +6,10 @@ import { Button, IconCopy } from '@supabase/ui'import CopyToClipboard from 'react-copy-to-clipboard'import rangeParser from 'parse-numeric-range'-import js from 'react-syntax-highlighter/dist/esm/languages/hljs/javascript'-import ts from 'react-syntax-highlighter/dist/esm/languages/hljs/typescript'-import py from 'react-syntax-highlighter/dist/esm/languages/hljs/python'-import sql from 'react-syntax-highlighter/dist/esm/languages/hljs/sql'+import js from 'react-syntax-highlighter/dist/cjs/languages/hljs/javascript'+import ts from 'react-syntax-highlighter/dist/cjs/languages/hljs/typescript'+import py from 'react-syntax-highlighter/dist/cjs/languages/hljs/python'+import sql from 'react-syntax-highlighter/dist/cjs/languages/hljs/sql'interface Props {lang: 'js' | 'ts' | 'sql' | 'py'