fix: harden runtime isolation and regression tests
This commit is contained in:
1 parent
5d9f05e083
commit
9963ba0274
8 files changed
+151
-100
No files matched your search
@@ -1,11 +1,9 @@
|
||||
import { createLogger } from "@homarr/core/infrastructure/logs";
|
||||
|
||||
const logger = createLogger({ module: "instrumentation" });
|
||||
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME !== "nodejs") return;
|
||||
if (process.env.NODE_ENV !== "production") return;
|
||||
|
||||
const { createLogger } = await import("@homarr/core/infrastructure/logs");
|
||||
const logger = createLogger({ module: "instrumentation" });
|
||||
const services = [
|
||||
{ name: "tasks", start: () => import("@homarr/tasks") },
|
||||
{ name: "websocket", start: () => import("@homarr/websocket") },
|
||||
|
||||
Reference in new issue
Block a user