From bd39d5da0b9593a603554af9c8cf252e7591acdd Mon Sep 17 00:00:00 2001 From: Swifty Date: Wed, 25 Sep 2024 13:53:11 +0200 Subject: [PATCH 1/2] fix(platform): Update Backend .env.example BACKEND_CORS_ALLOW_ORIGINS to be a list (#8163) updated to list --- autogpt_platform/backend/.env.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt_platform/backend/.env.example b/autogpt_platform/backend/.env.example index e74c5887e636..6b704e77fef8 100644 --- a/autogpt_platform/backend/.env.example +++ b/autogpt_platform/backend/.env.example @@ -5,7 +5,7 @@ DB_PORT=5432 DATABASE_URL="postgresql://${DB_USER}:${DB_PASS}@localhost:${DB_PORT}/${DB_NAME}?connect_timeout=60&schema=platform" PRISMA_SCHEMA="postgres/schema.prisma" -BACKEND_CORS_ALLOW_ORIGINS="http://localhost:3000" +BACKEND_CORS_ALLOW_ORIGINS=["http://localhost:3000"] REDIS_HOST=localhost REDIS_PORT=6379 From d2205628064a489177fb01c89dca226a658e57c7 Mon Sep 17 00:00:00 2001 From: Aarushi <50577581+aarushik93@users.noreply.github.com> Date: Wed, 25 Sep 2024 19:18:52 +0100 Subject: [PATCH 2/2] tweak(frontend): Add msg for custom error (#8157) add waitlist msg --- autogpt_platform/frontend/src/app/login/actions.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autogpt_platform/frontend/src/app/login/actions.ts b/autogpt_platform/frontend/src/app/login/actions.ts index b304cf8ba351..b0f4a59bf15f 100644 --- a/autogpt_platform/frontend/src/app/login/actions.ts +++ b/autogpt_platform/frontend/src/app/login/actions.ts @@ -50,6 +50,9 @@ export async function signup(values: z.infer) { const { data, error } = await supabase.auth.signUp(values); if (error) { + if (error.message.includes("P0001")) { + return "Please join our waitlist for your turn: https://agpt.co/waitlist"; + } return error.message; }