From 00ef40cfe1ed5fa5d36e2acef470c082dc8d91aa Mon Sep 17 00:00:00 2001 From: Charis <26616127+charislam@users.noreply.github.com> Date: Fri, 10 Apr 2026 10:32:17 -0400 Subject: [PATCH] turn off email signup temporarily on live supabase (#44745) ## Summary by CodeRabbit * **Chores** * Disabled email-based user signup for the production environment. * Disabled local database network restrictions to simplify local development and testing. --- supabase/config.toml | 3 +++ supabase/functions/search-embeddings/index.ts | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/supabase/config.toml b/supabase/config.toml index b3190d03ddf..aff7207cb1c 100644 --- a/supabase/config.toml +++ b/supabase/config.toml @@ -72,6 +72,9 @@ double_confirm_changes = true # If enabled, users need to confirm their email address before signing in. enable_confirmations = false +[remotes.prod.auth.email] +enable_signup = false + # Uncomment the following to use gh oAuth app locally with your own test app # to use env vars locally, run > `source ./supabase/.env && supabase [command...]` # [auth.external.github] diff --git a/supabase/functions/search-embeddings/index.ts b/supabase/functions/search-embeddings/index.ts index 5d1a98adcec..81db34d68fb 100644 --- a/supabase/functions/search-embeddings/index.ts +++ b/supabase/functions/search-embeddings/index.ts @@ -1,7 +1,7 @@ import 'https://deno.land/x/xhr@0.2.1/mod.ts' import { createClient } from 'jsr:@supabase/supabase-js@2' import { Configuration, OpenAIApi } from 'https://esm.sh/openai@3.1.0' -import { Database } from '../common/database-types.ts' +import { Database } from '../../../packages/common/database-types.ts' import { ApplicationError, UserError } from '../common/errors.ts' const openAiKey = Deno.env.get('OPENAI_API_KEY')