Home / Function/ getFallbackImportMapPath() — supabase Function Reference

getFallbackImportMapPath() — supabase Function Reference

Architecture documentation for the getFallbackImportMapPath() function in EdgeFunctions.utils.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/studio/components/interfaces/EdgeFunctions/EdgeFunctions.utils.ts lines 6–10

export const getFallbackImportMapPath = (files: Omit<FileData, 'id' | 'content' | 'state'>[]) => {
  // try to find a deno.json or import_map.json file
  const regex = /^.*?(deno|import_map).json*$/i
  return files.find(({ name }) => regex.test(name))?.name
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free