From 8f4c696bf7979c41807e679ba082eb4a21cf4e94 Mon Sep 17 00:00:00 2001 From: Daniel Mangum Date: Mon, 6 Jan 2025 17:11:14 -0500 Subject: [PATCH] pipelines: fix example supabase pipelines Fixes errors in supabase example pipelines. Signed-off-by: Daniel Mangum --- docs/data-routing/5-examples/24-supabase.md | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/data-routing/5-examples/24-supabase.md b/docs/data-routing/5-examples/24-supabase.md index 1963d2e0..39b610d5 100644 --- a/docs/data-routing/5-examples/24-supabase.md +++ b/docs/data-routing/5-examples/24-supabase.md @@ -12,15 +12,15 @@ managed through a single interface. Supabase provides multiple ways to consume data from Golioth. The following examples will need credentials from Supabase. Create two -[secrets](/data-routing/secrets) based on the -[Service Role Key](https://supabase.com/docs/guides/api/api-keys#the-servicerole-key). -`$SUPABASE_KEY` should be the the Server Role Key while `$SUPABASE_SERVICE_KEY` -should take the form of 'Bearer -$Service_Role_Key'. For example, if the `Service Role Key` is `12345` than the `$SUPABASE_SERVICE_KEY`should be set to`Bearer -12345`. - -The first example is the simplest and uses the -[REST API](https://supabase.com/docs/guides/api). Assuming a database named +[secrets](/data-routing/secrets) based on the [Service Role +Key](https://supabase.com/docs/guides/api/api-keys#the-servicerole-key). +`$SUPABASE_API_KEY` should be the the Server Role Key while +`$SUPABASE_AUTH_HEADER` should take the form of 'Bearer $Service_Role_Key'. For +example, if the `Service Role Key` is `12345` than the +`$SUPABASE_AUTH_HEADER` should be set to`Bearer 12345`. + +The first example is the simplest and uses the [REST +API](https://supabase.com/docs/guides/api). Assuming a table named `golioth_pipeline_basic` with the following columns: | id | created_at | temp | lat | long | @@ -28,7 +28,7 @@ The first example is the simplest and uses the Create the following Pipeline: - + The second example uses [Edge Functions](https://supabase.com/docs/guides/functions). While @@ -43,7 +43,7 @@ columns: Create the following Pipeline: - + Create a new Edge Function called `golioth-pipelines` with the following code: