The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Apply suggestions from code review
dng8c15988869f9
diff --git a/apps/docs/pages/guides/functions/examples/upstash-redis.mdx b/apps/docs/pages/guides/functions/examples/upstash-redis.mdxindex 9ff8b218c65..bbe58dd4dd1 100644--- a/apps/docs/pages/guides/functions/examples/upstash-redis.mdx+++ b/apps/docs/pages/guides/functions/examples/upstash-redis.mdx@@ -1,20 +1,19 @@import Layout from '~/layouts/DefaultGuideLayout'export const meta = {- id: 'examples-upstash-redis',title: 'Upstash Redis',description: 'Build an Edge Functions Counter with Upstash Redis.',}-Redis counter example that stores a [hash](https://redis.io/commands/hincrby/) of function invocation count per region.+A Redis counter example that stores a [hash](https://redis.io/commands/hincrby/) of function invocation count per region.-## Redis Database Setup+## Redis database setup-Create a Redis Database using [Upstash Console](https://console.upstash.com/) or [Upstash CLI](https://github.com/upstash/cli).+Create a Redis database using the [Upstash Console](https://console.upstash.com/) or [Upstash CLI](https://github.com/upstash/cli).Select the `Global` type to minimize the latency from all edge locations. Copy the `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` to your .env file.-You'll find them under Details > REST API > .env+You'll find them under **Details > REST API > .env**.```bashcp supabase/functions/upstash-redis-counter/.env.example supabase/functions/upstash-redis-counter/.env@@ -22,7 +21,7 @@ cp supabase/functions/upstash-redis-counter/.env.example supabase/functions/upst## Code-Make sure you have the latest version of the [Supabase CLI installed](https://supabase.com/docs/guides/cli#installation).+Make sure you have the latest version of the [Supabase CLI installed](/docs/guides/cli#installation).Create a new function in your project:@@ -77,7 +76,7 @@ supabase startsupabase functions serve upstash-redis-counter --no-verify-jwt --env-file supabase/functions/upstash-redis-counter/.env```-Navigate to 'http://localhost:54321/functions/v1/upstash-redis-counter'.+Navigate to http://localhost:54321/functions/v1/upstash-redis-counter.## Deploydiff --git a/examples/edge-functions/supabase/functions/upstash-redis-counter/README.md b/examples/edge-functions/supabase/functions/upstash-redis-counter/README.mdindex a382fef5a11..3d33a9e7dd7 100644--- a/examples/edge-functions/supabase/functions/upstash-redis-counter/README.md+++ b/examples/edge-functions/supabase/functions/upstash-redis-counter/README.md@@ -1,12 +1,12 @@# Upstash Redis in Supabase Edge Functions-Redis counter example that stores a [hash](https://redis.io/commands/hincrby/) of function invocation count per region.+A Redis counter example that stores a [hash](https://redis.io/commands/hincrby/) of function invocation count per region.-## Redis Database Setup+## Redis database setup-Create a Redis Database using [Upstash Console](https://console.upstash.com/) or [Upstash CLI](https://github.com/upstash/cli).+Create a Redis database using the [Upstash Console](https://console.upstash.com/) or [Upstash CLI](https://github.com/upstash/cli).-Select the `Global` type to minimize the latency from all edge locations. Copy the `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` to your .env file. You'll find them under Details > REST API > .env+Select the `Global` type to minimize the latency from all edge locations. Copy the `UPSTASH_REDIS_REST_URL` and `UPSTASH_REDIS_REST_TOKEN` to your .env file. You'll find them under **Details > REST API > .env**.```bashcp supabase/functions/upstash-redis-counter/.env.example supabase/functions/upstash-redis-counter/.env@@ -21,7 +21,7 @@ supabase startsupabase functions serve upstash-redis-counter --no-verify-jwt --env-file supabase/functions/upstash-redis-counter/.env```-Navigate to 'http://localhost:54321/functions/v1/upstash-redis-counter'.+Navigate to http://localhost:54321/functions/v1/upstash-redis-counter.## Deploy