The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: cleanup
thorwebdevd536a899a007
diff --git a/examples/edge-functions/supabase/functions/opengraph/handler.tsx b/examples/edge-functions/supabase/functions/opengraph/handler.tsxindex 6a206a09ade..c5448aa74db 100644--- a/examples/edge-functions/supabase/functions/opengraph/handler.tsx+++ b/examples/edge-functions/supabase/functions/opengraph/handler.tsx@@ -1,31 +1,32 @@-import React from "https://esm.sh/[email protected]";-import { ImageResponse } from "https://deno.land/x/og_edge/mod.ts";+import React from 'https://esm.sh/[email protected]?deno-std=0.140.0'+import { ImageResponse } from 'https://deno.land/x/[email protected]/mod.ts'export async function handler(req: Request) {- return new ImageResponse(- <div- style={{- fontSize: 100,- color: "black",- background: "white",- width: "100%",- height: "100%",- padding: "50px 200px",- textAlign: "center",- justifyContent: "center",- alignItems: "center",- display: "flex",- }}- >- 👋, It works!- </div>,+ return new ImageResponse(+ (+ <div+ style={{+ fontSize: 100,+ color: 'black',+ background: 'white',+ width: '100%',+ height: '100%',+ padding: '50px 200px',+ textAlign: 'center',+ justifyContent: 'center',+ alignItems: 'center',+ display: 'flex',+ }}+ >+ NICE! 🔥+ </div>+ ),{width: 1200,height: 630,// Supported options: 'twemoji', 'blobmoji', 'noto', 'openmoji', 'fluent', 'fluentFlat'// Default to 'twemoji'- emoji: "twemoji",- },- );+ emoji: 'twemoji',+ }+ )}-diff --git a/examples/edge-functions/supabase/functions/opengraph/index.ts b/examples/edge-functions/supabase/functions/opengraph/index.tsindex 5a7c5c38685..e16e8b4d5c6 100644--- a/examples/edge-functions/supabase/functions/opengraph/index.ts+++ b/examples/edge-functions/supabase/functions/opengraph/index.ts@@ -1,6 +1,12 @@-import { serve } from "https://deno.land/[email protected]/http/server.ts";+// Follow this setup guide to integrate the Deno language server with your editor:+// https://deno.land/manual/getting_started/setup_your_environment+// This enables autocomplete, go to definition, etc.-import {handler} from './handler.tsx'+import { serve } from 'https://deno.land/[email protected]/http/server.ts'++import { handler } from './handler.tsx'// @ts-ignore-serve(handler);+serve(handler)++// To deploy: supabase functions deploy opengraph --no-verify-jwt