This commit is contained in:
parent
9b8d9c0db4
commit
72abcbeb26
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue