The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update functions.mdx
Jonathan Summers-Muir9f0ce0e0d3f2
diff --git a/apps/docs/pages/guides/functions.mdx b/apps/docs/pages/guides/functions.mdxindex 9822760ab50..b6f3c0493b6 100644--- a/apps/docs/pages/guides/functions.mdx+++ b/apps/docs/pages/guides/functions.mdx@@ -1,5 +1,6 @@import Layout from '~/layouts/DefaultGuideLayout'-import {Button} from 'ui'+import { Button, GlassPanel } from 'ui'+import Link from 'next/link'export const meta = {id: 'functions',@@ -16,16 +17,79 @@ Edge Functions are server-side TypeScript functions, distributed globally at the- It is TypeScript first and supports WASM.- Edge Functions are globally distributed for low-latency.-<Button as="a" href="/docs/guides/functions/quickstart" size="medium">Get started</Button>+<div className="not-prose">+ <Button as="a" href="/docs/guides/functions/quickstart" size="medium">+ Get started+ </Button>+</div>## ExamplesCheck out the [Edge Function Examples](https://github.com/supabase/supabase/tree/master/examples/edge-functions) in our GitHub repository.-<div className="container" style={{ padding: 0 }}>- <FunctionsExamples />+<div className="grid md:grid-cols-12 gap-4 not-prose">+ {examples.map((x) => (+ <div className="col-span-6">+ <Link href={x.href} passHref>+ <a>+ <GlassPanel icon={'/docs/img/icons/github-icon'} title={x.name}>+ {x.description}+ </GlassPanel>+ </a>+ </Link>+ </div>+ ))}</div>+export const examples = [+ {+ name: 'With supabase-js',+ description: 'Use the Supabase client inside your Edge Function.',+ href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/select-from-table-with-auth-rls/index.ts',+ },+ {+ name: 'With CORS headers',+ description: 'Send CORS headers for invoking from the browser.',+ href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/browser-with-cors/index.ts',+ },+ {+ name: 'React Native with Stripe',+ description: 'Full example for using Supabase and Stripe, with Expo.',+ href: 'https://github.com/supabase-community/expo-stripe-payments-with-supabase-functions',+ },+ {+ name: 'Flutter with Stripe',+ description: 'Full example for using Supabase and Stripe, with Flutter.',+ href: 'https://github.com/supabase-community/flutter-stripe-payments-with-supabase-functions',+ },+ {+ name: 'Building a RESTful Service API',+ description:+ 'Learn how to use HTTP methods and paths to build a RESTful service for managing tasks.',+ href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/restful-tasks/index.ts',+ },+ {+ name: 'Working with Supabase Storage',+ description: 'An example on reading a file from Supabase Storage.',+ href: 'https://github.com/supabase/supabase/blob/master/examples/edge-functions/supabase/functions/read-storage/index.ts',+ },+ {+ name: 'Open Graph Image Generation',+ description: 'Generate Open Graph images with Deno and Supabase Edge Functions.',+ href: '/guides/functions/examples/og-image',+ },+ {+ name: 'OG Image Generation & Storage CDN Caching',+ description: 'Cache generated images with Supabase Storage CDN.',+ href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/og-image-with-storage-cdn',+ },+ {+ name: 'Get User Location',+ description: `Get user location data from user's IP address.`,+ href: 'https://github.com/supabase/supabase/tree/master/examples/edge-functions/supabase/functions/location',+ },+]+export const Page = ({ children }) => <Layout meta={meta} children={children} />export default Page