Skip to content

Commit 26a47e1

Browse files
committed
fix(blog): use direct imports in client component to avoid Node.js fs module
1 parent 2528775 commit 26a47e1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

apps/web-roo-code/src/components/blog/blog-analytics.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
"use client"
22

33
import { useEffect, useRef } from "react"
4-
import type { BlogPost } from "@/lib/blog"
5-
import { trackBlogIndexView, trackBlogPostView, trackBlogPostScrollDepth, trackBlogPostTimeSpent } from "@/lib/blog"
4+
import type { BlogPost } from "@/lib/blog/types"
5+
import {
6+
trackBlogIndexView,
7+
trackBlogPostView,
8+
trackBlogPostScrollDepth,
9+
trackBlogPostTimeSpent,
10+
} from "@/lib/blog/analytics"
611

712
interface BlogIndexAnalyticsProps {
813
postCount: number

0 commit comments

Comments
 (0)