storytellurx/scripts/bunny/configure-cache.ts
2026-10-05 13:49:30 +02:00

9 lines
421 B
TypeScript

import process from "node:process";
import { configureBunnyCache } from "@bureaudouble/autokit-operator/page-cache";
await configureBunnyCache({
pullZoneId: process.env["BUNNY_PULL_ZONE_ID"] ?? "",
apiKey: process.env["BUNNY_CDN_API_KEY"] ?? "",
cookies: { vary: ["age_legal", "locale"], authCookiePrefix: "autokit-auth" },
});
console.log("Bunny page caching configured with credential bypass and origin TTLs.");