dkfdkdodkms
05/02/2023, 8:16 PMHardAtWork
05/02/2023, 9:24 PMdkfdkdodkms
05/02/2023, 9:25 PMdkfdkdodkms
05/02/2023, 9:26 PMHardAtWork
05/02/2023, 9:26 PMdkfdkdodkms
05/02/2023, 9:27 PMHardAtWork
05/02/2023, 9:29 PMkian
05/03/2023, 12:16 AMrouter.all('*', () => new Response('Not Found', { status: 404 }))
kian
05/03/2023, 12:16 AM/
so anything else will just receive an error pagefidozo
05/03/2023, 10:27 AMCrazy Rabbit
05/03/2023, 11:40 AMCrazy Rabbit
05/03/2023, 11:41 AMSebastiaanYN
05/03/2023, 12:15 PMSebastiaanYN
05/03/2023, 12:15 PMcomagoosie
05/03/2023, 12:51 PMcomagoosie
05/03/2023, 1:21 PM/api
requests to passthrough and hit an origin server? 99% requests are static assets so cloudflare pages look enticingJames
05/03/2023, 1:24 PMJames
05/03/2023, 1:25 PM/api/[[path]].ts
for examplecomagoosie
05/03/2023, 1:26 PMreturn;
without a response that works in Worker sites doesn't work in functions (at least locally)James
05/03/2023, 1:26 PMfetch
the api manually. So something like return fetch(url);
James
05/03/2023, 1:27 PMurl
is something you construct from the path + api.example.com
for examplecomagoosie
05/03/2023, 1:28 PMkian
05/03/2023, 1:29 PMkian
05/03/2023, 1:29 PMcomagoosie
05/03/2023, 1:30 PMcomagoosie
05/03/2023, 1:30 PMTom Sherman
05/03/2023, 1:31 PMcomagoosie
05/03/2023, 1:34 PM/api
route is detected. It's behind traefik, so adding a custom domain + basic auth shouldn't be too hard. Eventually I'd like to move all the api routes into cloudflare pages functions, but I'd like to transition one endpoint at a timebret_pat
05/03/2023, 1:37 PMTom Sherman
05/03/2023, 1:43 PM