Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar committed Nov 28, 2024
1 parent 6dd12a3 commit 8aafe46
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const saveBotVisit = async (botData: EventResponseBotData, visitorId: str
requestId: botData.requestId,
timestamp: botData.time,
botResult: botData.bot.result,
botType: botData.bot.type,
botType: botData.bot.type ?? '',
userAgent: botData.userAgent,
url: botData.url,
});
Expand Down
2 changes: 1 addition & 1 deletion src/app/personalization/hooks/use-cart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export function useCart() {
});
return (await response.json()) as AddCartItemResponse;
},
onSuccess: (data: AddCartItemResponse) => refetchCartOnSuccess(data),
onSuccess: () => refetchCartOnSuccess(),
});

const removeCartItemMutation = useMutation({
Expand Down
15 changes: 8 additions & 7 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,13 @@ export const env = createEnv({
NEXT_PUBLIC_INKEEP_INTEGRATION_ID: process.env.NEXT_PUBLIC_INKEEP_INTEGRATION_ID,
NEXT_PUBLIC_INKEEP_ORG_ID: process.env.NEXT_PUBLIC_INKEEP_ORG_ID,
},
isServer:
// Comprehensive server check
// https://github.com/t3-oss/t3-env/issues/154
// Comprehensive server check
// https://github.com/t3-oss/t3-env/issues/154
isServer: Boolean(
typeof window === 'undefined' ||
'Deno' in window ||
globalThis.process.env['NODE_ENV'] === 'test' ||
!!globalThis.process.env['JEST_WORKER_ID'] ||
!!globalThis.process.env['VITEST_WORKER_ID'],
'Deno' in window ||
process.env['NODE_ENV'] === 'test' ||
process.env['JEST_WORKER_ID'] ||
process.env['VITEST_WORKER_ID'],
),
});

0 comments on commit 8aafe46

Please sign in to comment.