We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 544a8d9 commit 874122bCopy full SHA for 874122b
apps/studio/src/instrumentation.ts
@@ -0,0 +1,9 @@
1
+import { env } from "./env.mjs"
2
+
3
+export async function register() {
4
+ // make sure you only run on nodejs runtime or you will have errors with built-in modules not being defined
5
+ if (env.NODE_ENV === "production") {
6
+ console.log("Instrumenting Next.js Server")
7
+ await import("~/server/modules/tracer")
8
+ }
9
+}
apps/studio/src/server/modules/_app.ts
@@ -1,7 +1,6 @@
/**
* This file contains the root router of your tRPC-backend
*/
-import "./tracer"
import { publicProcedure, router } from "../trpc"
import { assetRouter } from "./asset/asset.router"
0 commit comments