Files
erika/instrumentation.ts

11 lines
302 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME === "nodejs") {
try {
const { getFollowerCounts } = await import("./lib/followers");
await getFollowerCounts();
} catch (error) {
console.error("[Instrumentation] Failed to warm up cache:", error);
}
}
}