From 72abcbeb2665e889b9b461247f9ac2e6036468d1 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 27 May 2025 17:29:13 +0800 Subject: [PATCH] . --- chatdesk-ui/README.md | 2 +- chatdesk-ui/supabase/migrations/20240108234540_setup.sql | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chatdesk-ui/README.md b/chatdesk-ui/README.md index 1d50749..8042e44 100644 --- a/chatdesk-ui/README.md +++ b/chatdesk-ui/README.md @@ -155,7 +155,7 @@ If the environment variable is set, it will disable the input in the user settin In the 1st migration file `supabase/migrations/20240108234540_setup.sql` you will need to replace 2 values with the values you got above: -- `project_url` (line 53): `http://supabase_kong_chatbotui:8000` (default) can remain unchanged if you don't change your `project_id` in the `config.toml` file +- `project_url` (line 53): `http://localhost:8000` (default) can remain unchanged if you don't change your `project_id` in the `config.toml` file - `service_role_key` (line 54): You got this value from running `supabase status` This prevents issues with storage files not being deleted properly. diff --git a/chatdesk-ui/supabase/migrations/20240108234540_setup.sql b/chatdesk-ui/supabase/migrations/20240108234540_setup.sql index 41c8abb..f1336d4 100644 --- a/chatdesk-ui/supabase/migrations/20240108234540_setup.sql +++ b/chatdesk-ui/supabase/migrations/20240108234540_setup.sql @@ -50,8 +50,8 @@ LANGUAGE 'plpgsql' SECURITY DEFINER AS $$ DECLARE - project_url TEXT := 'http://supabase_kong_chatbotui:8000'; - service_role_key TEXT := 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU'; -- full access needed for http request to storage + project_url TEXT := 'http://localhost:8000'; + service_role_key TEXT := 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoic2VydmljZV9yb2xlIiwiaXNzIjoic3VwYWJhc2UtZGVtbyIsImV4cCI6MjA2MjkyNTU2NSwiaWF0IjoxNzQ3NTY1NTY1fQ.18Lxnd9JrkNyV9q38l_8oQB8pwtZK8JwpLwpH2b4JaA'; -- full access needed for http request to storage url TEXT := project_url || '/storage/v1/object/' || bucket || '/' || object; BEGIN SELECT