mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 15:31:13 -05:00
Fix Novu API import path
This commit is contained in:
@@ -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
|
||||||
|
|||||||
2
supabase/functions/deno.d.ts
vendored
2
supabase/functions/deno.d.ts
vendored
@@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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": {
|
||||||
|
|||||||
@@ -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': '*',
|
||||||
|
|||||||
@@ -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': '*',
|
||||||
|
|||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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': '*',
|
||||||
|
|||||||
Reference in New Issue
Block a user