turn off email signup temporarily on live supabase (#44745)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Chores**
  * Disabled email-based user signup for the production environment.
* Disabled local database network restrictions to simplify local
development and testing.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Charis
2026-04-10 10:32:17 -04:00
committed by GitHub
parent 18def1710d
commit 00ef40cfe1
2 changed files with 4 additions and 1 deletions

View File

@@ -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]

View File

@@ -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')