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

8 lines
214 B
TypeScript

export async function register() {
if (process.env.NEXT_RUNTIME !== "nodejs") return;
if (process.env.NODE_ENV !== "production") return;
await import("@homarr/tasks");
await import("@homarr/websocket");
}