perf: add prefetch all api when build container and incrase light house score
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user