Serverless Apps On Cloudfare - Questions on Ch. 1

@ashleypeacock

  1. I wasn’t sure if /src/index.ts should contain the “fetch” function or the “scheduled” function. But in looking at the end of Ch. 1 there is an image of “Hello World!” displaying in the browser which helped. So I put index.ts back to the way it was (containing the “fetch” function) and created a new file to contain the “scheduled” function.

  2. Should the “scheduled” function be called by the worker? And if so how or what triggers it to be called?

  3. My code can be found at https://github.com/Chrisgo-75/serverless_apps_on_cloudfare
    Thank you
    Chris