dart_edge icon indicating copy to clipboard operation
dart_edge copied to clipboard

Run Dart on the Edge - supporting Vercel & Cloudflare Workers (more coming soon).

Results 32 dart_edge issues
Sort by recently updated
recently updated
newest added

Plain `print()` calls now generate INFO messages on Supabase. How can we implement a full logging system with different logging levels?

I am running on Supabase Edge. As far as I understand from [Fetching Data](https://docs.dartedge.dev/guides/fetch), it is possible to fetch data using two approaches, Fetch and HTTP Package. However, the sample...

``` const testEnvVar = String.fromEnvironment( 'SUPABASE_URL', defaultValue: 'defaultVal', ); ``` The env var SUPABASE_URL comes built in as a default secret, per https://supabase.com/docs/guides/functions/secrets, yet defaultVal is returned.

After generating my edge function, I received ``` error: Uncaught TypeError: Cannot read properties of undefined (reading 'toString') t1.toString; ``` ``` t1 = A._asStringQ(self.Deno.env.get("OPENAI_API_KEY")); t1.toString; ``` I'm not sure if...

``` const response = await options.runtime.dispatchFetch(String(getURL(req)), { ^ TypeError: options.runtime.dispatchFetch is not a function at Server.handler (//.npm/_npx/e04f8f8c002b5887/node_modules/edge-runtime/dist/server/create-handler.js:28:56) at Server.emit (node:events:513:28) at parserOnIncoming (node:_http_server:1091:12) at HTTPParser.parserOnHeadersComplete (node:_http_common:119:17) Node.js v18.16.0 ```

Vercel has recently added its own suite of managed, serverless storage products: - [Vercel KV](https://vercel.com/docs/storage/vercel-kv): Durable Redis - [Vercel Postgres](https://vercel.com/docs/storage/vercel-postgres): Serverless SQL - [Vercel Blob](https://vercel.com/docs/storage/vercel-blob): Large file storage - [Vercel...

In analogy to [VercelEdgeShelf](https://github.com/invertase/dart_edge/blob/main/packages/vercel_edge/lib/vercel_edge_shelf.dart). I needed to edit the uri, because in contrast to the vercel example, it contained the function name itself. I don't think that's desired in the...

Looks like `request.cf` property does not expose `ipAddress`. Fix would be to do `request.headers['cf-connecting-ip']` instead. https://github.com/invertase/dart_edge/blob/18ae5d6a968de17fc2a8d06a21a989253e6cb7bb/docs/platform/cloudflare/request-properties.mdx?plain=1#L15