I am no table to import a local file into a Deno / Edge function. It allows me to import a local file as long as its within the supabase directory, but I am using a monorepo and am trying to import files and functions that are used in other places within the app.
My example is pretty straight forward and I cant seem to figure out how to reused simple functions in an Edge function.
packages/app/foo.ts
packages/app/foo.ts
export function foo() { return true; }
export function foo() { return true; }
packages/backend/supabase/functions
packages/backend/supabase/functions
import { foo } from 'app'; TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'foo'.
import { foo } from 'app'; TS2305 [ERROR]: Module '"deno:///missing_dependency.d.ts"' has no exported member 'foo'.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.