© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•2mo ago•
1 reply
Floppy Disk

Edge functions in Vite project

edge functions🟡javascript
I have rather complicated type system in my project where I use
type-fest
type-fest
to alter db type. I use custom vite plugin to generate types on the fly from classes.
I added path alias to my
deno.json
deno.json
like so:
{
  "imports": {
    "@/": "../../../src/", // <-- This points outside of supabase directory
  }
}
{
  "imports": {
    "@/": "../../../src/", // <-- This points outside of supabase directory
  }
}

But when I'm trying to deploy I'm getting error:
unexpected deploy status 400: {"message":"Failed to bundle the function (reason: Module not found \"file:///tmp/user_fn_x_51/source/src/features/crm_system/lib/_core/crmSystem/crmSystem.types.gen\".\n    at file:///tmp/user_fn_x_51/source/src/lib/supabase/supabase_types_override.ts:1:45)."}
unexpected deploy status 400: {"message":"Failed to bundle the function (reason: Module not found \"file:///tmp/user_fn_x_51/source/src/features/crm_system/lib/_core/crmSystem/crmSystem.types.gen\".\n    at file:///tmp/user_fn_x_51/source/src/lib/supabase/supabase_types_override.ts:1:45)."}

How can I "merge" my React Vite codebase with supabase fn codebase?
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-functions new project 401 Error
SupabaseSSupabase / help-and-questions
2w ago
Directories in edge functions.
SupabaseSSupabase / help-and-questions
4y ago
Transactions in Edge Functions
SupabaseSSupabase / help-and-questions
4y ago
Edge Functions
SupabaseSSupabase / help-and-questions
4mo ago