Files
homarr/apps/nextjs/src/instrumentation.ts
T

8 lines
265 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME !== "nodejs") return;
if (process.env.NODE_ENV !== "production") return;
const { registerNodeInstrumentation } = await import("./instrumentation-node");
await registerNodeInstrumentation();
}