Skip to content

Commit

Permalink
public NODE_ENV env
Browse files Browse the repository at this point in the history
  • Loading branch information
chickzilla committed Nov 1, 2024
1 parent 78d90ba commit 420665c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/src/app/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const trpc = createTRPCProxyClient<AppRouter>({
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({
Expand Down
4 changes: 2 additions & 2 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"INTANIA_AUTH_APP_ID",
"INTANIA_AUTH_REDIRECT_URL",
"JWT_SECRET",
"NODE_ENV"
"NEXT_PUBLIC_NODE_ENV"
],
"globalDependencies": ["**/.env.*local"],
"tasks": {
Expand All @@ -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/**"]
Expand Down

0 comments on commit 420665c

Please sign in to comment.