edge-runtime icon indicating copy to clipboard operation
edge-runtime copied to clipboard

Need a way to set flags for Deno

Open vincaslt opened this issue 1 year ago • 4 comments

Bug report

  • [x] I confirm this is a bug with Supabase, not with my own application.
  • [x] I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Some Deno features are locked behind an --unstable flag. There doesn't seem to be a way to set it for edge functions.

This is a recreated issue that was registered for supabase CLI: https://github.com/supabase/cli/pull/1139

To Reproduce

Unable to use Deno.createHttpClient() because it's behind an --unstable flag. When serving the function the function is said to be missing.

Expected behavior

A way to set Deno flags or support for unstable features.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

  • OS: Windows
  • Version of supabase-js: 1.110.1
  • Version of Node.js: v18.17.1

vincaslt avatar Nov 08 '23 21:11 vincaslt

Here's a link to the list of unstable Deno features: https://docs.deno.com/runtime/manual/tools/unstable_flags

Examples include Deno.cron() and Deno KV.

zlumer avatar Mar 12 '24 09:03 zlumer

@inian can we get a target date to support Deno.createHttpClient(), related to #208, #210 and #1139

predragcvetkovski avatar Mar 20 '24 06:03 predragcvetkovski

hey there, not sure if this is the right place, but Is there any way to set deno flags while starting supabase in local with supabase start??

I want to pass --allow-net --unsafely-ignore-certificate-errors fetch.ts while starting the supabase. As it's failing to start due to TLS verification.

JayMGurav avatar Apr 05 '24 17:04 JayMGurav

hey there, not sure if this is the right place, but Is there any way to set deno flags while starting supabase in local with supabase start??

I want to pass --allow-net --unsafely-ignore-certificate-errors fetch.ts while starting the supabase. As it's failing to start due to TLS verification.

@JayMGurav Supabse discussions would be more appropriate for you question. Here's one that is relevant: https://github.com/orgs/supabase/discussions/14604

linhub15 avatar Apr 05 '24 22:04 linhub15