albedo
12/05/2021, 4:56 PMNik
12/05/2021, 6:53 PMchrisjmccreadie
12/05/2021, 7:26 PMTv
12/05/2021, 9:52 PM/functions/[foo]/[bar].ts
? i keep getting 404 and i'm not sure if it's my fault or notTv
12/05/2021, 9:52 PMGreg Brimble | Cloudflare Pages
12/05/2021, 9:53 PM/functions/[[captureAll]].ts
and parse out individual segments yourself unfortunately.Greg Brimble | Cloudflare Pages
12/05/2021, 9:53 PMTv
12/05/2021, 9:54 PMfunctions/blah-[x].ts
would also be great. basically, steal SvelteKit routing 😉Tv
12/05/2021, 9:54 PMmike.pete
12/06/2021, 12:00 AMTypeError: Web Socket request did not return status 101 Switching Protocols response with Web Socket
at Server.<anonymous> (file:///C:/Users/mike/github/menu/front/node_modules/@miniflare/http-server/dist/src/index.js:553:22)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Erwin
12/06/2021, 12:04 AMGreg Brimble | Cloudflare Pages
12/06/2021, 12:06 AMGreg Brimble | Cloudflare Pages
12/06/2021, 12:06 AMmike.pete
12/06/2021, 12:12 AMnpx wrangler pages dev -- craco start
mike.pete
12/06/2021, 12:12 AMmike.pete
12/06/2021, 12:15 AM/api/test
doesn't work :/mike.pete
12/06/2021, 12:18 AMErwin
12/06/2021, 12:19 AMErwin
12/06/2021, 12:20 AMGreg Brimble | Cloudflare Pages
12/06/2021, 12:24 AM/api/test
?mike.pete
12/06/2021, 12:26 AM"react-router-dom": "^5.3.0"
and they seem to be using "react-router-dom": "^6.0.1"
in their example: https://github.com/cloudflare/images.pages.dev
I'm not sure if the version would make that big of a difference
Does react-router have a config file for this somewhere?mike.pete
12/06/2021, 12:28 AMmike.pete
12/06/2021, 12:28 AMexport const onRequest = () => {
return new Response(new Date().toISOString())
}
Greg Brimble | Cloudflare Pages
12/06/2021, 1:22 AMmike.pete
12/06/2021, 1:40 AMGreg Brimble | Cloudflare Pages
12/06/2021, 8:12 AMrobinio
12/06/2021, 9:03 AMGreg Brimble | Cloudflare Pages
12/06/2021, 9:04 AMGreg Brimble | Cloudflare Pages
12/06/2021, 9:05 AMrobinio
12/06/2021, 9:07 AM