https://discord.cloudflare.com logo
Join Discord
Powered by
# workers-discussions
  • d

    dave

    05/16/2023, 5:41 PM
    hmm I guess we don't badly need it on anything except path now that I think about it more.
  • d

    dave

    05/16/2023, 5:41 PM
    since for the crazy header based routing (thanks AWS....), we only need to do a round-trip to a backend once in most cases.
  • s

    Skye

    05/16/2023, 5:41 PM
    I'm sure it could end up more intelligent than that with a lot of work - but I feel like pathname is a slightly more reasonable demand 😅
  • i

    Irantwomiles

    05/16/2023, 6:31 PM
    How do I prevent my custom route from re-routing back to the worker.dev route?
  • s

    Skye

    05/16/2023, 6:31 PM
    Could you elaborate?
  • i

    Irantwomiles

    05/16/2023, 6:33 PM
    Would you be willing to look at my question in the wokers-help channel? It might be a little much for this channel
  • i

    Irantwomiles

    05/16/2023, 6:34 PM
    This is the link if you have time: https://discord.com/channels/595317990191398933/1107861271447085056
  • s

    Skye

    05/16/2023, 6:34 PM
    Ah yes, I didn't see it
  • g

    g000m

    05/16/2023, 7:06 PM
    I just read that Date.now() is disabled in workers. I had to do some reading to understand how that's a security concern, but that leaves me wondering if there's an alternate timing method available for measuring response times for D1 queries? I haven't attempted this yet, but I've been brainstorming on some experiments for evaluating D1 performance.
  • u

    Unsmart | Tech debt

    05/16/2023, 7:07 PM
    Date.now is not disabled its just not 100% accurate it can be off by ~2 seconds
  • u

    Unsmart | Tech debt

    05/16/2023, 7:07 PM
    and in the same request running Date.now() twice to time something should be good enough
  • d

    dave

    05/16/2023, 7:08 PM
    You can just measure the Worker's overall response time too.
  • d

    dave

    05/16/2023, 7:11 PM
    @sathoro awww the database integration doesn't handle rotating secrets :/ https://developers.cloudflare.com/workers/learning/integrations/databases/#what-happens-to-the-database-integration-if-i-rotate-my-database-credentials
  • g

    g000m

    05/16/2023, 7:56 PM
    great clarification, thanks
  • h

    http.james

    05/16/2023, 8:31 PM
    if i serve content from another s3 service but using cloudflare workers and without caching, does that still constitute violation of the new CDN terms? () > Finally, we made it clear that customers can serve video and other large files using the CDN so long as that content is hosted by a Cloudflare service like Stream, Images, or R2.
  • h

    HardAtWork

    05/16/2023, 8:31 PM
    As long as there is I/O in between. If it is just computation, then it will be frozen
  • m

    MorganAtFirstline

    05/16/2023, 9:29 PM
    Hi guys, is it possible to get miniflare/workerd to respect
    --local-upstream
    when running
    wrangler dev --experimental-local
    ?
  • m

    MorganAtFirstline

    05/16/2023, 9:45 PM
    Alternatively, how do I get the
    --host
    option to work with my domain provided by dynu.net (essentially dyndns)?
  • o

    olivia // chew

    05/17/2023, 12:58 AM
    This isn't very clear instructions. Do I need to wrangle this down locally then run this? It never says how or where to do this and I got thrown off because there's seemingly no direction on where to put it (the rest of the guide is on the dashboard so it's only logical this is also there, but I couldn't find it)

    https://cdn.discordapp.com/attachments/779390076219686943/1108196860327362571/VuVAk9B.pngâ–¾

  • s

    sathoro

    05/17/2023, 1:00 AM
    yes. you would run that locally
  • s

    sathoro

    05/17/2023, 1:00 AM
    you need the Supabase library to use Supabase
  • o

    olivia // chew

    05/17/2023, 1:07 AM
    yeah I figured, maybe add an intermediary step to say "clone the site locally with wrangler" or something, thank you! love to see the supabase integration
  • c

    Cyb3r-Jok3

    05/17/2023, 1:10 AM
    Not cloudflare but I believe so.
  • u

    Unsmart | Tech debt

    05/17/2023, 1:12 AM
    That one IMO still is not clear in the TOS but from what the CEO has said on Hacker News before... yes you can:
  • h

    http.james

    05/17/2023, 1:13 AM
    thanks for finding this
  • u

    Unsmart | Tech debt

    05/17/2023, 1:15 AM
    And fwiw that also did have cache turned on and he said it wasnt a problem so 🤷
  • d

    dave

    05/17/2023, 1:26 AM
    Any idea what I'm doing wrong? https://miniflare.dev/testing/vitest#waiting-for-waituntiled-promises

    https://cdn.discordapp.com/attachments/779390076219686943/1108203798188544091/image.pngâ–¾

  • d

    dave

    05/17/2023, 1:30 AM
    oh maybe this... https://github.com/cloudflare/miniflare/blob/master/docs/CHANGELOG.md#features
  • d

    dave

    05/17/2023, 1:48 AM
    ah fudge, what's up with this?
    Copy code
    [mf:err] POST /api/aws-compatible: TypeError: Failed to parse URL from [object Object]
        at new Request (/Users/dave/Work/yourcrowd-api/node_modules/undici/lib/fetch/request.js:81:15)
        at new Request (/Users/dave/Work/yourcrowd-api/node_modules/miniflare/node_modules/@miniflare/core/src/standards/http.ts:466:13)
        at Miniflare.dispatchFetch (/Users/dave/Work/yourcrowd-api/node_modules/miniflare/node_modules/@miniflare/core/src/index.ts:1077:51)
        at Server.<anonymous> (/Users/dave/Work/yourcrowd-api/node_modules/@miniflare/http-server/src/index.ts:291:20)
  • d

    dave

    05/17/2023, 2:09 AM
    fixed by switching to
    --experimental-local
1...246924702471...2509Latest