diff --git a/internal/functions/new/templates/deno.json b/internal/functions/new/templates/deno.json index f6ca8454c..758d0703d 100644 --- a/internal/functions/new/templates/deno.json +++ b/internal/functions/new/templates/deno.json @@ -1,3 +1,5 @@ { - "imports": {} + "imports": { + "@supabase/functions-js": "jsr:@supabase/functions-js@^2" + } } diff --git a/internal/functions/new/templates/index.ts b/internal/functions/new/templates/index.ts index c7f64fffa..dd1f7ce67 100644 --- a/internal/functions/new/templates/index.ts +++ b/internal/functions/new/templates/index.ts @@ -3,7 +3,7 @@ // This enables autocomplete, go to definition, etc. // Setup type definitions for built-in Supabase Runtime APIs -import "jsr:@supabase/functions-js/edge-runtime.d.ts" +import "@supabase/functions-js/edge-runtime.d.ts" console.log("Hello from Functions!")