Isaac McFadyen | YYZ01
04/16/2022, 10:13 PMawait next()
if it's on a different route?Isaac McFadyen | YYZ01
04/16/2022, 10:14 PMJames
04/16/2022, 10:14 PMconst lookupFile = new URL(request.url);
lookupFile.pathname = './test.html';
const asset = await next(lookupFile);
James
04/16/2022, 10:14 PMIsaac McFadyen | YYZ01
04/16/2022, 10:14 PMIsaac McFadyen | YYZ01
04/16/2022, 10:15 PMJames
04/16/2022, 10:16 PMWalshy | Pages
04/16/2022, 10:16 PMnext(string)
though not sure the behaviour compared the ASSETS.fetchIsaac McFadyen | YYZ01
04/16/2022, 10:17 PMJames
04/16/2022, 10:18 PMq
, if so, trying to request a new asset, and then returning it, otherwise just passing through next()
. I want to change the html file I serve without altering the URLIsaac McFadyen | YYZ01
04/16/2022, 10:18 PMJames
04/16/2022, 10:19 PMnext
works aren't super verbose yetWalshy | Pages
04/16/2022, 10:21 PMWalshy | Pages
04/16/2022, 10:22 PMWalshy | Pages
04/16/2022, 10:22 PMWalshy | Pages
04/16/2022, 10:22 PMJames
04/16/2022, 10:22 PMJames
04/16/2022, 10:23 PMJames
04/16/2022, 10:23 PMWalshy | Pages
04/16/2022, 10:23 PMJames
04/16/2022, 10:27 PMkian
04/16/2022, 10:28 PMkian
04/16/2022, 10:28 PMJames
04/16/2022, 10:34 PMkian
04/16/2022, 10:36 PMJames
04/16/2022, 10:42 PMnpx wrangler@beta pages dev ./public
, but https://universe-horse-test.pages.dev/?test 406's in prod. π€James
04/16/2022, 10:42 PM./test.html
and ./test
. HmmIsaac McFadyen | YYZ01
04/16/2022, 10:43 PMnew URL
twice.