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

    James

    03/05/2023, 8:36 PM
    I'd recommend filing an issue there so they can match the first-party
    Promise<any>
    at https://github.com/Cloudflare-Mining/Cloudflare-Datamining/blob/87ef982bb7bbf9f8f1468f38de1dc1701e4a04cf/data/workers-types/experimental/index.d.ts#L291
  • d

    dave

    03/05/2023, 8:36 PM
    ahhhhh
  • j

    James

    03/05/2023, 8:37 PM
    (also, cloudflare folks, please publish the types on github again so we can link to official things instead of my mining repo. That would be awesome) 😅
  • d

    dave

    03/05/2023, 8:38 PM
    done, thanks. https://github.com/honojs/hono/pull/958
  • j

    James

    03/05/2023, 8:38 PM
    awesome 🙂
  • d

    dave

    03/05/2023, 8:39 PM
    is this a sane hacky workaround?
    c.executionCtx.waitUntil(report as any);
  • j

    James

    03/05/2023, 8:40 PM
    I'd probably just
    @ts-expect-error
    it and link to the github PR personally
  • j

    James

    03/05/2023, 8:40 PM
    then remove once fixed upstream
  • d

    dave

    03/05/2023, 8:41 PM
    nice! did not know that was a thing
  • b

    Better James

    03/05/2023, 10:04 PM
    Is there a good way to measure worker invocation duration locally, other than starting/stopping a timer in the worker and logging the result? edit: i see miniflare has a
    inaccurate-cpu
    flag. ignore me.
  • d

    dave

    03/05/2023, 10:09 PM
    Copy code
    POST https://REDACTED.example.com/hi - Ok @ 3/5/2023, 4:34:45 PM
    Who is causing the redaction in my logs...? Can't find it in Hono.
  • k

    kian

    03/05/2023, 10:10 PM
    workerd removes high entrophy stuff
  • k

    kian

    03/05/2023, 10:11 PM
  • r

    Rowin

    03/05/2023, 10:33 PM
    How am I supposed to protect myself from DDoS with Workers? I am on the free plan which supposedly has a 1000 requests per minute rate limit, but 576k successful requests came through in way less than 576 minutes.
  • k

    kian

    03/05/2023, 10:36 PM
    The most effective protection is the WAF & rate limiting which require you to have a domain on Cloudflare
  • r

    Rowin

    03/05/2023, 10:50 PM
    What if they attack the pages.dev domain directly?
  • u

    Unsmart | Tech debt

    03/05/2023, 10:51 PM
    🤷
  • k

    kian

    03/05/2023, 10:52 PM
    pages.dev? Add Access
  • k

    kian

    03/05/2023, 10:52 PM
    workers.dev which I assume you meant? You can disable that
  • u

    Unsmart | Tech debt

    03/05/2023, 10:52 PM
    well you cant have access over the non-preview pages.dev so
  • u

    Unsmart | Tech debt

    03/05/2023, 10:53 PM
    well you can but then it blocks ur custom domain too
  • k

    kian

    03/05/2023, 10:53 PM
    You can
  • k

    kian

    03/05/2023, 10:54 PM
    Nothing about Access on Pages is very fun, and the Teams UI will tell you it isn't a zone when it is - but you can follow
  • k

    kian

    03/05/2023, 10:54 PM
    Personally I've had a custom domain w/ Service Auth Everyone before and that worked but I'd have to test it
  • u

    Unsmart | Tech debt

    03/05/2023, 10:54 PM
    Interesting everyone ive told to try that said it didnt work
  • u

    Unsmart | Tech debt

    03/05/2023, 10:55 PM
    I have my prod pages.dev blocked by access and not my custom domain but only because my zone is cursed lol
  • e

    Erisa | Support Engineer

    03/05/2023, 11:27 PM
    Ive had people say it doesnt work but then say it works once I give very specific instructions you have to type the domain into the teams UI, press enter to confirm it and stop the autocomplete, then completely ignore the warning saying it doesnt exist
  • d

    dave

    03/06/2023, 1:11 AM
    I have it set up. We use it for our staging domain to test it before pushing to main/production.
  • d

    dave

    03/06/2023, 1:17 AM
    That’s annoying. Do you know if logpush would get sanitized too?
  • d

    dave

    03/06/2023, 1:30 AM
    This would scrub what gets included in logpush too, right? 😐
1...232123222323...2509Latest