@valuya/fastly-compute
v0.2.0-beta.1
Published
Valuya Guard adapter for Fastly Compute (fetch-style handlers).
Readme
@valuya/fastly-compute
Valuya Guard adapter for Fastly Compute (fetch-style handlers).
import { withValuyaFastly } from "@valuya/fastly-compute"
export default {
fetch: withValuyaFastly(
{ base: "https://pay.gorilla.build", tenantToken: "...", plan: "pro" },
async () => new Response(JSON.stringify({ ok: true }), { headers: { "content-type": "application/json" } }),
),
}