Walshy | Pages
01/03/2022, 3:00 PMworker
folder is where the function code ismaximillian
01/03/2022, 3:01 PMWalshy | Pages
01/03/2022, 3:02 PMmaximillian
01/03/2022, 3:15 PMThe package "events" wasn't found on the file system but is built into node. Are you trying to bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
maximillian
01/03/2022, 3:15 PMcrypto
, http
and several other node packages)SirJosh
01/03/2022, 3:23 PMSirJosh
01/03/2022, 3:29 PMmaximillian
01/03/2022, 3:47 PMmaximillian
01/03/2022, 3:47 PMfunctions
...maximillian
01/03/2022, 4:11 PMmaximillian
01/03/2022, 4:22 PMHardAtWork
01/03/2022, 5:31 PMmaximillian
01/03/2022, 6:06 PMmaximillian
01/03/2022, 6:06 PMWhen using a _worker.js file, the entire /functions directory is ignored – this includes its routing and middleware characteristics. Instead, the _worker.js file is deployed as is and must be written using the Module Worker syntax
maximillian
01/03/2022, 6:07 PMHardAtWork
01/03/2022, 6:18 PMmaximillian
01/03/2022, 6:26 PMWalshy | Pages
01/03/2022, 6:28 PMWalshy | Pages
01/03/2022, 6:28 PMWalshy | Pages
01/03/2022, 6:28 PMmaximillian
01/03/2022, 6:32 PM/functions
. I've tried to avoid touching normal workers so far because I don't really know how to use them and I'm completely new to the Cloudflare ecosystem as it is :/maximillian
01/03/2022, 6:32 PMmaximillian
01/03/2022, 6:32 PMWalshy | Pages
01/03/2022, 6:32 PMWalshy | Pages
01/03/2022, 6:32 PMWalshy | Pages
01/03/2022, 6:33 PMmaximillian
01/03/2022, 6:45 PMstripe-node
with deno (which is also fetch based)maximillian
01/03/2022, 6:46 PMhttp://esm.sh/stripe?target=deno
maximillian
01/03/2022, 6:56 PM