© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•7mo ago
Hermann

Where do I put shared code in Edge Function?

Is it possible to add a _shared folder and define a file in there that is used across other functions?
And have them imported like it that?

import { validateAppleCertificateChain, hasValidCertificateStructure } from '../_shared/apple-certificate-validator.ts';
import { validateAppleCertificateChain, hasValidCertificateStructure } from '../_shared/apple-certificate-validator.ts';


The problem is when I deploy this, I don't see the function under _shared appearing anywhere.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Edge function shared code
SupabaseSSupabase / help-and-questions
3mo ago
edge utility functions shared across other edge functions.
SupabaseSSupabase / help-and-questions
2mo ago
Deploying Edge Functions Shared Folder
SupabaseSSupabase / help-and-questions
8mo ago
Where to put deno.json for shared folders
SupabaseSSupabase / help-and-questions
8mo ago