fix(blog): use direct imports in client component to avoid Node.js fs module

This commit is contained in:
Roo Code 2026-01-28 01:03:27 +00:00
parent 2528775815
commit 26a47e1cdb

View file

@ -1,8 +1,13 @@
"use client"
import { useEffect, useRef } from "react"
import type { BlogPost } from "@/lib/blog"
import { trackBlogIndexView, trackBlogPostView, trackBlogPostScrollDepth, trackBlogPostTimeSpent } from "@/lib/blog"
import type { BlogPost } from "@/lib/blog/types"
import {
trackBlogIndexView,
trackBlogPostView,
trackBlogPostScrollDepth,
trackBlogPostTimeSpent,
} from "@/lib/blog/analytics"
interface BlogIndexAnalyticsProps {
postCount: number