From 7c187bbfabd118aaefb4403f3807340c95fd0ebf Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Fri, 30 Dec 2022 10:16:43 +0900 Subject: [PATCH 1/2] Fixing discord signin --- website/src/pages/auth/signin.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/pages/auth/signin.tsx b/website/src/pages/auth/signin.tsx index 1dcbf211..1f1b0323 100644 --- a/website/src/pages/auth/signin.tsx +++ b/website/src/pages/auth/signin.tsx @@ -60,7 +60,7 @@ export default function Signin({ csrfToken, providers }) { size="lg" leftIcon={} color="white" - onClick={() => signIn(discord, { callbackUrl: "/" })} + onClick={() => signIn(discord.id, { callbackUrl: "/" })} // isDisabled="false" > Continue with Discord From 97c7541fea49cece164aeb3edad45ab1069454ec Mon Sep 17 00:00:00 2001 From: Keith Stevens Date: Fri, 30 Dec 2022 10:24:51 +0900 Subject: [PATCH 2/2] Also fixing the .env for local development to be inline with the docker compose setup --- website/.env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/.env b/website/.env index e4f3a202..9544836b 100644 --- a/website/.env +++ b/website/.env @@ -1,5 +1,5 @@ # The database created by running the jobs in /scripts/frontend-development/docker-compose.yaml -DATABASE_URL=postgres://postgres:postgres@localhost:5433/ocgpt_website +DATABASE_URL=postgres://postgres:postgres@localhost:5433/oasst_web # The FastAPI backend found by running the jobs in /scripts/frontend-development/docker-compose.yaml FASTAPI_URL=http://localhost:8080