From 4af5339cb2516f122beee97ba131235d737a77e4 Mon Sep 17 00:00:00 2001 From: Rachid F Date: Tue, 18 Jun 2024 01:37:58 +0200 Subject: [PATCH] :sparkles: Env var to control Axiom activation --- .gitignore | 1 + packages/api/src/app.module.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index adcdcbf83..2377557f2 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ redis_data .pnpm-store/ .npmrc .vscode +ngrok.yml \ No newline at end of file diff --git a/packages/api/src/app.module.ts b/packages/api/src/app.module.ts index 61859e9d6..80f0bb8ba 100644 --- a/packages/api/src/app.module.ts +++ b/packages/api/src/app.module.ts @@ -56,7 +56,7 @@ import { PrismaModule } from '@@core/prisma/prisma.module'; context: 'HTTP', }), transport: - process.env.ENV === 'prod' + process.env.AXIOM_AGENT_STATUS === 'ENABLED' ? { target: '@axiomhq/pino', options: {