Zottelchen🍭
03/26/2022, 11:30 PMZottelchen🍭
03/27/2022, 12:13 AMawait env.<KV>.put('authToken', String(acc_auth["authorizationToken"]), {expirationTtl: 79200});
does not seem to work. What am I doing wrong?qard
03/28/2022, 2:19 AMapollo-server-cloudflare
in a function to back a pages app, but it falls over with "could not resolve" errors for a bunch of Node.js core modules. 😢cvejic092
03/28/2022, 12:00 PMWalshy | Pages
03/28/2022, 12:36 PMjs
// functions/index.js
export async function onRequestGet({ env }) {
if (Math.floor(Math.random() * 50) < 50) {
return env.ASSETS.fetch('/index');
} else {
return env.ASSETS.fetch('/new-index');
}
}
cvejic092
03/28/2022, 12:40 PMFailed to parse URL from /homepage-2
and I have in my output directory homepage-2/index.html. It somehow started working, but i'm still getting /homepage-2 url and i don't want that, i want root path to stay unchanged.Isaac McFadyen | YYZ01
03/28/2022, 12:49 PMIsaac McFadyen | YYZ01
03/28/2022, 12:49 PMWalshy | Pages
03/28/2022, 12:49 PMcvejic092
03/28/2022, 12:49 PMWalshy | Pages
03/28/2022, 12:50 PM/homepage-2/
cvejic092
03/28/2022, 12:50 PMtmw
03/28/2022, 6:51 PMtmw
03/28/2022, 6:51 PMtmw
03/28/2022, 7:28 PMhakan_
03/28/2022, 7:59 PMIsaac McFadyen | YYZ01
03/28/2022, 7:59 PMIsaac McFadyen | YYZ01
03/28/2022, 7:59 PMhakan_
03/28/2022, 7:59 PMtmw
03/28/2022, 8:06 PMtmw
03/28/2022, 8:06 PMWalshy | Pages
03/28/2022, 8:20 PMtmw
03/28/2022, 8:25 PMBytesource
03/29/2022, 1:17 AM.ts
files wasn't supported on Cloudflare Pages.
In fact, there's no problem with the Typescript support, and it works as well on localhost (using npx wrangler pages dev
) as it does on the server.
So, what was the issue then? As it turns out, I had added the single .ts
file I used for testing to .gitignore
, so the file didn't ever get to the server. No wonder, Cloudflare Pages couldn't import it 😖MAXOUXAX
03/29/2022, 7:36 AMIsaac McFadyen | YYZ01
03/29/2022, 12:18 PMIsaac McFadyen | YYZ01
03/29/2022, 12:18 PMfurf
03/29/2022, 9:17 PMremotesynth
03/29/2022, 9:23 PMmarkoan
03/30/2022, 3:32 AM