https://discord.cloudflare.com logo
Join Discord
Powered by
# functions
  • w

    wonkrattle

    11/20/2021, 9:48 PM
    So if I’m just covering weather.js and hello-world.js, then it should be one per visit to either of those urls
  • w

    William | Chaos Management

    11/20/2021, 9:48 PM
    Does functions usage count towards the regular workers usage?
  • i

    itsmatteomanf

    11/20/2021, 9:50 PM
    No, it's separate. 100k/day for free now during the beta. You can do 100k/day for each for free. Workers can be increased for a price.
  • w

    William | Chaos Management

    11/20/2021, 9:51 PM
    ah cool
  • w

    wonkrattle

    11/20/2021, 9:51 PM
    So that is really super interesting because for a page that I’ve maybe loaded 100 times I am at 10,000 invocations
  • w

    wonkrattle

    11/20/2021, 9:52 PM
    I’m sure it’ll get figured out it’s just fascinating
  • i

    itsmatteomanf

    11/20/2021, 9:52 PM
    That doesn't sound correct... What is the path you are deploying to? Can you share a screenshot of the
    /functions
    folder?
  • g

    gerred

    11/20/2021, 9:53 PM
    it's probably _worker.js, see above about how a few of us have talked about this and how to maybe do some better work there in the future around static assets.
  • w

    wonkrattle

    11/20/2021, 9:53 PM
    https://github.com/datapolitical/chrisfnicholson.github.io/tree/cloudflare-functions/functions
  • g

    gerred

    11/20/2021, 9:53 PM
    it actually punishes you for doing things like route or bundle splitting that things like sveltekit do
  • g

    gerred

    11/20/2021, 9:53 PM
    oh that's different I suppose.
  • w

    wonkrattle

    11/20/2021, 9:53 PM
    I don’t have an _worker.js
  • i

    itsmatteomanf

    11/20/2021, 9:55 PM
    It looks correct to me, I did notice some weird count of invocations myself, but it was a
    _worker.js
    from a SvelteKit deployment, so I don't know how many request it actually did.
  • w

    wonkrattle

    11/20/2021, 9:55 PM
    Yeah I’m sure there’s just something strange going on, it’s new software after all
  • i

    itsmatteomanf

    11/20/2021, 9:55 PM
    I was about to ping @User, but I see him typing ahah
  • w

    wonkrattle

    11/20/2021, 9:55 PM
    Yeah he knows about it already
  • g

    Greg Brimble | Cloudflare Pages

    11/20/2021, 9:55 PM
    We’re aware of this issue on Windows. I’ll be trying to fix next week 😊
  • a

    andrew | 1003

    11/20/2021, 9:56 PM
    He's always watching! 👀
  • i

    itsmatteomanf

    11/20/2021, 9:56 PM
    Even on a Saturday night 😛
  • a

    andrew | 1003

    11/20/2021, 9:56 PM
    covid 😦
  • w

    wonkrattle

    11/20/2021, 9:56 PM
    It’s Saturday afternoon here
  • w

    wonkrattle

    11/20/2021, 9:56 PM
    And I’m at home watching the USC game lol
  • a

    andrew | 1003

    11/20/2021, 9:56 PM
    hehe me too
  • w

    wonkrattle

    11/20/2021, 9:56 PM
    Trojans or Bruins?
  • i

    itsmatteomanf

    11/20/2021, 9:57 PM
    But Greg is in the UK, if I remember correctly. So it's 10pm on the Saturday. We are going OT.
  • a

    andrew | 1003

    11/20/2021, 9:57 PM
    switching between usc and bama rn
  • w

    wonkrattle

    11/20/2021, 9:57 PM
    Yeah I’ve been seeing people tweeting about the Alabama game
  • g

    Greg Brimble | Cloudflare Pages

    11/20/2021, 9:57 PM
    Yeah, we talked about it before, but any project with any functions stuff (anything in the functions directory or an _worker.js) make every request on that project count as an invocation.
  • w

    wonkrattle

    11/20/2021, 9:58 PM
    So basically any page load
  • i

    itsmatteomanf

    11/20/2021, 9:58 PM
    Oh, wow. Didn't know that. I guess it needs to parse the paths...
1...567...392Latest