Fix Novu API import path

This commit is contained in:
gpt-engineer-app[bot]
2025-10-12 15:41:36 +00:00
parent 4d96f45e74
commit 1333a5e8c8
7 changed files with 7 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
import { Novu } from "@novu/api"; import { Novu } from "npm:@novu/api@0.0.7";
// TODO: In production, restrict CORS to specific domains // TODO: In production, restrict CORS to specific domains
// For now, allowing all origins for development flexibility // For now, allowing all origins for development flexibility

View File

@@ -20,7 +20,7 @@ declare module 'https://esm.sh/@supabase/supabase-js@2.57.4' {
export * from '@supabase/supabase-js'; export * from '@supabase/supabase-js';
} }
declare module 'npm:@novu/api' { declare module 'npm:@novu/api@0.0.7' {
export * from '@novu/api'; export * from '@novu/api';
} }

View File

@@ -8,8 +8,7 @@
}, },
"imports": { "imports": {
"@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.57.4", "@supabase/supabase-js": "https://esm.sh/@supabase/supabase-js@2.57.4",
"std/": "https://deno.land/std@0.190.0/", "std/": "https://deno.land/std@0.190.0/"
"@novu/api": "npm:@novu/api@latest"
}, },
"lint": { "lint": {
"rules": { "rules": {

View File

@@ -1,6 +1,6 @@
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4"; import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4";
import { Novu } from "@novu/api"; import { Novu } from "npm:@novu/api@0.0.7";
const corsHeaders = { const corsHeaders = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',

View File

@@ -1,5 +1,5 @@
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
import { Novu } from "@novu/api"; import { Novu } from "npm:@novu/api@0.0.7";
const corsHeaders = { const corsHeaders = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',

View File

@@ -1,5 +1,5 @@
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
import { Novu } from "@novu/api"; import { Novu } from "npm:@novu/api@0.0.7";
import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4"; import { createClient } from "https://esm.sh/@supabase/supabase-js@2.57.4";
const corsHeaders = { const corsHeaders = {

View File

@@ -1,5 +1,5 @@
import { serve } from "https://deno.land/std@0.168.0/http/server.ts"; import { serve } from "https://deno.land/std@0.168.0/http/server.ts";
import { Novu } from "@novu/api"; import { Novu } from "npm:@novu/api@0.0.7";
const corsHeaders = { const corsHeaders = {
'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Origin': '*',