Skip to content

Conversation

@sykuang
Copy link

@sykuang sykuang commented Jan 8, 2026

Problem

Supabase Edge Function deployment was failing due to timeout issues caused by the way dependencies were being imported directly from URLs (esm.sh and deno.land).

Solution

Updated the import strategy in scout-cron functions to use the Deno import map (deno.json) instead of inline URL imports:

  • Changed @supabase/supabase-js to use npm: specifier in import map
  • Changed std/http/server to use import map alias instead of direct URL

Changes

  • supabase/functions/scout-cron/deno.json: Added proper import map entries for @supabase/supabase-js and std/http/server
  • supabase/functions/scout-cron/index.ts: Updated imports to use the import map aliases

Benefits

  • Faster and more reliable function deployment
  • Centralized dependency management in deno.json
  • Avoids timeout issues during dependency resolution at deploy time

@vercel
Copy link

vercel bot commented Jan 8, 2026

@sykuang is attempting to deploy a commit to the SideGuide Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant