saibotsivad
01/03/2022, 8:11 PMErwin
01/04/2022, 12:16 AMfidgetboy12321
01/04/2022, 12:16 AMimport { getApiUrl, lookupQueryStringVariable } from "./utils";
export const onRequestGet = async ({
request,
env,
params,
waitUntil,
next,
data,
}) => {
const gameId = lookupQueryStringVariable(request, "gameId");
const url = `${getApiUrl()}game-state&gameId=${gameId}`;
return fetch(url, {
method: "GET",
cache: "no-cache",
});
};
Erwin
01/04/2022, 12:16 AMErwin
01/04/2022, 12:17 AMfidgetboy12321
01/04/2022, 12:18 AMError 1101
and just trying to figure out how to debug or look at logs of some kindErwin
01/04/2022, 12:23 AMfidgetboy12321
01/04/2022, 12:36 AMfidgetboy12321
01/04/2022, 12:36 AMErwin
01/04/2022, 12:42 AMfidgetboy12321
01/04/2022, 12:55 AMErwin
01/04/2022, 12:58 AMundefined
values? Can you remove all unused ones?saibotsivad
01/04/2022, 2:35 AMsaibotsivad
01/04/2022, 2:36 AMErwin
01/04/2022, 2:38 AMsaibotsivad
01/04/2022, 2:39 AMsaibotsivad
01/04/2022, 2:40 AMErwin
01/04/2022, 2:40 AMsaibotsivad
01/04/2022, 2:41 AMsaibotsivad
01/04/2022, 2:42 AMsaibotsivad
01/04/2022, 2:43 AMmaximillian
01/04/2022, 12:32 PMResponse.redirect
isn't defined. What am I missing?maximillian
01/04/2022, 12:34 PMResponse
object doesn't seem to have this static method. I've tried both testEnvironment: jsdom
and node
, as well as replacing fetch with isomorphic-fetch
fidgetboy12321
01/04/2022, 9:03 PMfidgetboy12321
01/04/2022, 9:04 PMfidgetboy12321
01/04/2022, 9:04 PMWalshy | Pages
01/04/2022, 9:09 PMfidgetboy12321
01/04/2022, 9:10 PMsteranevdy
01/05/2022, 12:12 PM