Skye
12/20/2022, 12:59 PM--persist
tooSkye
12/20/2022, 12:59 PMW7T2A
12/20/2022, 1:41 PMLarry
12/20/2022, 6:27 PMPaganMuffin
12/20/2022, 6:46 PMzszszsz
12/20/2022, 8:56 PMzszszsz
12/20/2022, 8:57 PMtypeof origin === 'string'
but it throws Error: Failed to get the 'origin' property on 'ServiceWorkerGlobalScope'
zszszsz
12/20/2022, 9:00 PMkian
12/20/2022, 9:04 PMnavigator.userAgent === 'Cloudflare-Workers'
if your compatibility date is newer than 2022-03-21
will identify Workers specificallyzszszsz
12/20/2022, 9:06 PMskminhong
12/21/2022, 5:09 AMwrangler.toml
things for Cloudflare Pages?
I guess this kind of question has already been asked much, but I'm new here 😅James
12/21/2022, 5:28 AMskminhong
12/21/2022, 5:30 AMJohnsCreek
12/21/2022, 7:57 AMArun_Venkat
12/21/2022, 8:46 AMSkye
12/21/2022, 8:54 AMLoaiA
12/22/2022, 9:29 AMSkye
12/22/2022, 11:05 AM/functions/hello.js -> /hello
, you will only be billed for requests to /hello, regardless of whether there is an asset there or not, as the function takes prioritySkye
12/22/2022, 11:06 AM/functions/api/[[path]].js -> /functions/api/*
, pages is unable to work out which routes you want your function to run on as easily, so any request under /api/* will rush your functionsLoaiA
12/22/2022, 11:08 AMindex.html -> /
requestsSkye
12/22/2022, 11:08 AMSkye
12/22/2022, 11:09 AM/functions/[[path]] -> /*
, it wouldn't know which routes are functions, and which aren't, so every request would be billedLoaiA
12/22/2022, 11:09 AMSkye
12/22/2022, 11:09 AMLoaiA
12/22/2022, 11:10 AMLoaiA
12/22/2022, 11:10 AMSkye
12/22/2022, 11:11 AMSkye
12/22/2022, 11:11 AMLoaiA
12/22/2022, 11:12 AMLoaiA
12/22/2022, 11:13 AM