Skip to content

Need a way to set flags for Deno #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
vincaslt opened this issue Nov 8, 2023 · 5 comments
Closed
2 tasks done

Need a way to set flags for Deno #205

vincaslt opened this issue Nov 8, 2023 · 5 comments
Labels
C-bug Category: something isn't working

Comments

@vincaslt
Copy link

vincaslt commented Nov 8, 2023

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • 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: supabase/cli#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
@zlumer
Copy link

zlumer commented Mar 12, 2024

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
Copy link

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

@JayMGurav
Copy link

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
Copy link

linhub15 commented Apr 5, 2024

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

@nyannyacha
Copy link
Contributor

Hello everyone 😁

The edge runtime (or Edge Functions) runs multiple/various user functions within the single process.
Unstable feature of Deno can't be enabled or disabled in only a particular function, so it is very unlikely that we would support this. It would affect other functions.

Unfortunately, we should mark this issue as a wonfix 🥲

However, the good news is that Deno.createHttpClient, which is probably what caused this issue to be opened, has been stabilised in Deno v2 and is no longer an unstable feature.

We're working on bringing Deno v2 to edge runtime, and we currently have a few tests left to ensure it works correctly and will be doing public testing after that.

Thank you!

@nyannyacha nyannyacha closed this as not planned Won't fix, can't repro, duplicate, stale Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants