mirror of
https://github.com/hanzoai/shadcn.git
synced 2026-10-30 18:22:59 +00:00
Major fixes: - Fixed wagmi/Web3 SSR errors by lazy-loading config in Web3Provider - Added SidebarProvider to sidebar-demo components - Added 'use client' to 14 demo files with hooks/state/event handlers - Temporarily disabled force-static on blocks page Build progress: 0 → 258/1035 pages (25%) before hitting /blocks error Remaining issue: - /blocks page has function-passing error during static generation Package versions confirmed: - React 19.2.0 ✅ - Next.js 16.0.0 ✅ - Tailwind CSS 4.1.14 ✅
24 lines
590 B
TypeScript
24 lines
590 B
TypeScript
/// <reference types="vitest" />
|
|
import path from "path"
|
|
import react from "@vitejs/plugin-react"
|
|
import { defineConfig } from "vitest/config"
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
environment: "happy-dom",
|
|
globals: true,
|
|
setupFiles: ["./vitest.setup.ts"],
|
|
include: ["**/*.{test,spec}.{ts,tsx}"],
|
|
exclude: ["node_modules", ".next", "out", "tests/e2e/**/*"],
|
|
typecheck: {
|
|
enabled: false, // Disable vitest type checking to let tsc handle it
|
|
},
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./"),
|
|
},
|
|
},
|
|
})
|