does pages still support zola? I wasn't able to get it to install on the v2 build system- how would
does pages still support zola? I wasn't able to get it to install on the v2 build system- how would I get it installed?


wrangler tail or using the realtime error stream on the dashboard, then repro itidFromString only accepts the result of an id.toString()
const lockId = env.LOCK.idFromString(`${storeId}-${data.userEmail}`);
const lock = env.LOCK.get(lockId);
const lockUrl = new URL("http://0.0.0.0/lock");
lockUrl.searchParams.set("durationSecs", "30");
const lockResponse = await lock.fetch(lockUrl.toString());
if (lockResponse.status !== 204)
return new Error("Request being processed.");async fetch(request: Request) {
const url = new URL(request.url);
switch (url.pathname) {
case "/unlock": {
await this.state.storage.delete("lock");
return new Response(null, {
status: 204,
});
}
case "/lock": {
const lockedUntil = await this.state.storage.get<number>("lock");
if (lockedUntil && lockedUntil > Date.now())
return new Response(null, {
status: 409,
});
const durationSecsString = url.searchParams.get("durationSecs");
if (!durationSecsString)
return new Response(null, {
status: 400,
});
const durationSecsNumber = parseInt(durationSecsString);
if (
!Number.isSafeInteger(durationSecsNumber) ||
durationSecsNumber <= 0
)
return new Response(null, {
status: 400,
});
await this.state.storage.put("lock", Date.now());
return new Response(null, {
status: 204,
});
}
}
}idFromStringid.toString()