File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/supabase_functions/lib Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ import 'dart:async' ;
12import 'dart:js_util' as js_util;
23
34import 'package:edge_runtime/edge_runtime.dart' ;
@@ -19,6 +20,10 @@ class SupabaseFunctionsShelf {
1920 SupabaseFunctionsShelf ({
2021 this .fetch,
2122 }) {
23+ // runZonedGuarded(() {
24+
25+ // }, (error, stack) { });
26+
2227 // Setup the runtime environment.
2328 setupRuntime ();
2429
@@ -37,6 +42,9 @@ class SupabaseFunctionsShelf {
3742 // Remove the first path segment, because it starts with `dart_edge/<actual-sub-path>`.
3843 var uri = Uri .parse (clone.url);
3944 uri = uri.replace (pathSegments: uri.pathSegments.skip (1 ));
45+ if (uri.path.isEmpty) {
46+ uri = uri.replace (path: "/" );
47+ }
4048
4149 final shelfRequest = shelf.Request (
4250 clone.method,
You can’t perform that action at this time.
0 commit comments