From 420665c6860a36bc173bd6c5894bc3da1df3fdef Mon Sep 17 00:00:00 2001 From: Dulyawat Khamkaew <6430127621@student.chula.ac.th> Date: Fri, 1 Nov 2024 14:48:50 +0700 Subject: [PATCH] public NODE_ENV env --- apps/web/src/app/trpc.ts | 2 +- turbo.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/src/app/trpc.ts b/apps/web/src/app/trpc.ts index 63d96005..a896fbde 100644 --- a/apps/web/src/app/trpc.ts +++ b/apps/web/src/app/trpc.ts @@ -6,7 +6,7 @@ export const trpc = createTRPCProxyClient({ links: [ loggerLink({ enabled: (opts) => - (env('NODE_ENV') === 'development' && typeof window !== 'undefined') || + (env('NEXT_PUBLIC_NODE_ENV') === 'development' && typeof window !== 'undefined') || (opts.direction === 'down' && opts.result instanceof Error), }), httpBatchLink({ diff --git a/turbo.json b/turbo.json index f5191435..22d8db9c 100644 --- a/turbo.json +++ b/turbo.json @@ -6,7 +6,7 @@ "INTANIA_AUTH_APP_ID", "INTANIA_AUTH_REDIRECT_URL", "JWT_SECRET", - "NODE_ENV" + "NEXT_PUBLIC_NODE_ENV" ], "globalDependencies": ["**/.env.*local"], "tasks": { @@ -16,7 +16,7 @@ "INTANIA_AUTH_APP_ID", "INTANIA_AUTH_REDIRECT_URL", "JWT_SECRET", - "NODE_ENV" + "NEXT_PUBLIC_NODE_ENV" ], "dependsOn": ["^build"], "outputs": ["dist/**", ".next/**", "!.next/cache/**"]