mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-23 05:11:14 -05:00
Fix Novu API import error
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
|
||||
import { Novu } from "npm:@novu/api@0.0.7";
|
||||
import { Novu } from "npm:@novu/api@1.6.0";
|
||||
import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4";
|
||||
|
||||
const corsHeaders = {
|
||||
@@ -21,9 +21,8 @@ serve(async (req) => {
|
||||
throw new Error('NOVU_API_KEY is not configured');
|
||||
}
|
||||
|
||||
const novu = new Novu({
|
||||
apiKey: novuApiKey,
|
||||
baseURL: Deno.env.get('VITE_NOVU_API_URL') || 'https://api.novu.co',
|
||||
const novu = new Novu({
|
||||
secretKey: novuApiKey
|
||||
});
|
||||
|
||||
const supabase = createClient(supabaseUrl, supabaseServiceKey);
|
||||
|
||||
Reference in New Issue
Block a user