Refactor: Replace hardcoded Supabase URLs

This commit is contained in:
gpt-engineer-app[bot]
2025-10-29 12:10:39 +00:00
parent 9504703040
commit 6fc0f494f3
7 changed files with 17 additions and 11 deletions

View File

@@ -35,8 +35,9 @@ export function NovuMigrationUtility() {
throw new Error('You must be logged in to run the migration');
}
const supabaseUrl = import.meta.env.VITE_SUPABASE_URL || 'https://api.thrillwiki.com';
const response = await fetch(
'https://ydvtmnrszybqnbcqbdcy.supabase.co/functions/v1/migrate-novu-users',
`${supabaseUrl}/functions/v1/migrate-novu-users`,
{
method: 'POST',
headers: {