Edge function shared code
Fairly new to edge functions, modularizing some parts and learning about shared code in edge functions. I believe the documentation states that having a _shared folder inside the functions folder and outside any specific function with relative imports
(https://supabase.com/docs/guides/functions/development-tips#organizing-your-edge-functions)
is the way to utilize shared code. The error in the image
is the result of that syntax. I also read that I need to make an import map in the config.toml to make the function aware of the shared code, I tried this with
to try to make a global import map where I specified
to allow all functions to access the shared code. This did not work either...
How can I access my shared code? Thanks!
import { x } from "../_shared/x.ts";(https://supabase.com/docs/guides/functions/development-tips#organizing-your-edge-functions)
is the way to utilize shared code. The error in the image
is the result of that syntax. I also read that I need to make an import map in the config.toml to make the function aware of the shared code, I tried this with
to try to make a global import map where I specified
to allow all functions to access the shared code. This did not work either...
How can I access my shared code? Thanks!
