AoElite
01/13/2022, 2:46 AMEpailes
01/13/2022, 11:33 AMWalshy | Pages
01/13/2022, 11:40 AMGreg Brimble | Cloudflare Pages
01/13/2022, 1:17 PMWalshy | Pages
01/13/2022, 1:19 PMErwin
01/13/2022, 1:30 PMJosh
01/13/2022, 1:32 PMreitznerdomenik
01/13/2022, 2:49 PMnpx wrangler@beta pages dev .
and it works perfectly.
As soon as I deploy I get a 403 error (I already checked the auth header, that I need to set)
I log the output here as the last entry https://reitzner-at.pages.dev/blog.json
Is there a way to debug, why it is failing?travtrax
01/13/2022, 3:35 PMbsam75
01/13/2022, 3:40 PMnpx wrangler pages dev ./
still does not pick it up. Im using wrangler 0.0.7bsam75
01/13/2022, 3:47 PMGreg Brimble | Cloudflare Pages
01/13/2022, 4:01 PMfunctions
folder over a _worker.js
script. Maybe that should be the other way around?bsam75
01/13/2022, 4:02 PMGreg Brimble | Cloudflare Pages
01/13/2022, 4:02 PMGreg Brimble | Cloudflare Pages
01/13/2022, 4:03 PMbsam75
01/13/2022, 4:03 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.
Greg Brimble | Cloudflare Pages
01/13/2022, 4:04 PMbsam75
01/13/2022, 4:04 PMtravtrax
01/13/2022, 5:51 PMCоlе
01/13/2022, 6:09 PMCоlе
01/13/2022, 6:10 PMCоlе
01/13/2022, 6:12 PMCоlе
01/13/2022, 6:13 PMbsam75
01/13/2022, 7:45 PM/functions/[[slug]].js
worker that theoretically runs on everything but have it only run the worker if the path doesnt already exist in the pages project?Greg Brimble | Cloudflare Pages
01/13/2022, 7:48 PMCоlе
01/13/2022, 7:49 PMCоlе
01/13/2022, 7:49 PMbsam75
01/13/2022, 7:49 PMCоlе
01/13/2022, 7:50 PM