From cb460b23d94d4b5912e9af0bf64a1f5fbe24897c Mon Sep 17 00:00:00 2001 From: Jonathan Summers-Muir Date: Thu, 31 Mar 2022 17:17:28 +0200 Subject: [PATCH] update copy --- www/components/Sections/FunctionsUsecases.tsx | 2 +- www/data/products/functions/usecase-examples.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/www/components/Sections/FunctionsUsecases.tsx b/www/components/Sections/FunctionsUsecases.tsx index e9bd76328a4..78376a9d95c 100644 --- a/www/components/Sections/FunctionsUsecases.tsx +++ b/www/components/Sections/FunctionsUsecases.tsx @@ -65,7 +65,7 @@ function FunctionsUsecases(props: Props) { (active ? ' text-scale-1100' : ' text-scale-800 group-hover:text-scale-1100 ') } > - {/* {feat.description} */} + {feat.description} ) diff --git a/www/data/products/functions/usecase-examples.js b/www/data/products/functions/usecase-examples.js index 8cd511b036a..93a49b1b783 100644 --- a/www/data/products/functions/usecase-examples.js +++ b/www/data/products/functions/usecase-examples.js @@ -5,6 +5,7 @@ export default [ { lang: 'js', title: 'Sending an email', + description: 'Send an email via SMTP directly in the function', size: 'large', code: `import { serve } from "https://deno.land/std@0.114.0/http/server.ts"; import { SmtpClient } from "https://deno.land/x/smtp@v0.7.0/mod.ts"; @@ -32,6 +33,7 @@ serve(async (_req) => { { lang: 'js', title: 'Connect to database directly', + description: `Connect to your database via pg_bouncer`, size: 'large', code: `import { serve } from "https://deno.land/std@0.114.0/http/server.ts"; import * as postgres from "https://deno.land/x/postgres@v0.14.2/mod.ts"; @@ -51,6 +53,7 @@ serve(async (req: Request) => { { lang: 'js', title: 'Read from storage', + description: `Read and write to any of your buckets, while also respecting storage auth policies.`, size: 'large', code: `import { serve } from "https://deno.land/std@0.114.0/http/server.ts"; import { createClient } from "https://esm.sh/@supabase/supabase-js@1.33.1"; @@ -72,6 +75,7 @@ serve(async (req) => { { lang: 'js', title: 'Read from database', + description: `Read, Write, Update, Insert anything on the database`, size: 'large', code: `import { serve } from "https://deno.land/std@0.114.0/http/server.ts"; import { createClient } from "https://esm.sh/@supabase/supabase-js@1.33.1";