supabase / edge-runtime

A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services.
MIT License
642 stars 56 forks source link

Need a way to set flags for Deno #205

Open vincaslt opened 10 months ago

vincaslt commented 10 months ago

Bug report

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

zlumer commented 6 months ago

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.

predragcvetkovski commented 6 months ago

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

JayMGurav commented 5 months ago

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.

linhub15 commented 5 months ago

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