9 lines
421 B
TypeScript
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.");
|