feat: add pino logging to next
This commit is contained in:
6
apps/web/src/instrumentation.ts
Normal file
6
apps/web/src/instrumentation.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export async function register() {
|
||||
if (process.env.NEXT_RUNTIME === "nodejs") {
|
||||
await require("pino");
|
||||
await require("next-logger");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user