Skip to content

Commit 52e299c

Browse files
committed
vercel fix: cn
1 parent 1423493 commit 52e299c

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎apps/web/lib/utils.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
// Re-export utilities from @vibe-code-sdk/ui
2-
export { cn } from '@vibe-code-sdk/ui'
1+
// Define cn locally to avoid client module tainting from @vibe-code-sdk/ui
2+
// This allows cn to be used in both server and client components
3+
import { clsx, type ClassValue } from 'clsx'
4+
import { twMerge } from 'tailwind-merge'
5+
6+
export function cn(...inputs: ClassValue[]) {
7+
return twMerge(clsx(inputs))
8+
}
39

410
// App-specific utility functions
511
export function isFileInArray(file: File, existingFiles: File[]) {

0 commit comments

Comments
 (0)