I'm struggling with figuring out the best way to deploy edge functions which take a dependency on classes or methods defined elsewhere in my repository. I see a lot of posts online around
_shared
_shared
folders,
deno.json
deno.json
and
import_map
import_map
.
How do I use
deno.json
deno.json
for a local import from another place in my repo? Do I need to modify the
supabase function deploy <function_name>
supabase function deploy <function_name>
CLI command in any way?
The issue I'm running into now is something like -
unexpected deploy status 400: {"message":"failed to create the graph\n\nCaused by:\n Module not found \"file:///tmp/user_fn_gmniqteyvuvjvhvaqbxi_7aea3757-1209-4749-8f2e-0af891505194_7/source/supabase/functions/_shared/baml_client/async_client\".\n at file:///tmp/user_fn_gmniqteyvuvjvhvaqbxi_7aea3757-1209-4749-8f2e-0af891505194_7/source/supabase/functions/generate-feedback/index.ts:3:19"}
unexpected deploy status 400: {"message":"failed to create the graph\n\nCaused by:\n Module not found \"file:///tmp/user_fn_gmniqteyvuvjvhvaqbxi_7aea3757-1209-4749-8f2e-0af891505194_7/source/supabase/functions/_shared/baml_client/async_client\".\n at file:///tmp/user_fn_gmniqteyvuvjvhvaqbxi_7aea3757-1209-4749-8f2e-0af891505194_7/source/supabase/functions/generate-feedback/index.ts:3:19"}
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.