From 454a0927539d1b1cdb05dd29c8c56b8cc683f667 Mon Sep 17 00:00:00 2001 From: Abhrxdi4p Date: Tue, 10 Feb 2026 17:47:30 +0530 Subject: [PATCH 1/2] Fixed console.log bugs --- src/lib/date-utils.ts | 1 - src/store/blogActions.ts | 1 - src/utils/analytics.ts | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/lib/date-utils.ts b/src/lib/date-utils.ts index 8b3412b..967535b 100644 --- a/src/lib/date-utils.ts +++ b/src/lib/date-utils.ts @@ -36,7 +36,6 @@ export function formatDate(isoDateString: string, format: DateFormat): string { // Check if date is valid if (isNaN(date.getTime())) { - console.warn("Invalid date provided to formatDate:", isoDateString); return "Invalid date"; } diff --git a/src/store/blogActions.ts b/src/store/blogActions.ts index 969a291..6099de4 100644 --- a/src/store/blogActions.ts +++ b/src/store/blogActions.ts @@ -34,7 +34,6 @@ export async function loadMoreBlogs( const endCursor = pageInfo.hasNextPage ? pageInfo.endCursor : null; return { posts, endCursor, error: null }; } catch (error) { - console.error("Failed to fetch more blogs:", error); return { posts: [], endCursor: null, diff --git a/src/utils/analytics.ts b/src/utils/analytics.ts index 9e06fc3..383235d 100644 --- a/src/utils/analytics.ts +++ b/src/utils/analytics.ts @@ -9,7 +9,5 @@ declare global { export const trackGAEvent = (action: string, params?: { [key: string]: any }) => { if (typeof window.gtag === "function") { window.gtag("event", action, params); - } else { - console.warn("gtag function not found. Analytics event not sent."); } }; From 8a704f2967b81c57f21122058a342766c0b4d459 Mon Sep 17 00:00:00 2001 From: Abhrxdi4p Date: Tue, 10 Feb 2026 17:55:04 +0530 Subject: [PATCH 2/2] Fixed unsplash errors and pnpm version --- Dockerfile | 4 ++-- next.config.ts | 6 ++++++ package.json | 2 +- src/base/data/dummy/index.ts | 10 +++++----- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1d66d4c..90768f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,8 +9,8 @@ RUN apk update && apk upgrade --no-cache RUN apk add --no-cache libc6-compat WORKDIR /app -# Install pnpm globally -RUN npm install -g pnpm +# Install pnpm globally with specific version +RUN npm install -g pnpm@9.15.4 # Copy package manifests and lock file COPY package.json pnpm-lock.yaml ./ diff --git a/next.config.ts b/next.config.ts index 1023dce..b29a4f2 100644 --- a/next.config.ts +++ b/next.config.ts @@ -19,6 +19,12 @@ const nextConfig: NextConfig = { port: "", pathname: "/**", }, + { + protocol: "https", + hostname: "ui-avatars.com", + port: "", + pathname: "/api/**", + }, { protocol: "https", hostname: "cdn.hashnode.com", diff --git a/package.json b/package.json index eafcfea..cf98d0c 100644 --- a/package.json +++ b/package.json @@ -76,5 +76,5 @@ "vite-tsconfig-paths": "^5.1.4", "vitest": "^4.0.15" }, - "packageManager": "pnpm@10.28.2+sha512.41872f037ad22f7348e3b1debbaf7e867cfd448f2726d9cf74c08f19507c31d2c8e7a11525b983febc2df640b5438dee6023ebb1f84ed43cc2d654d2bc326264" + "packageManager": "pnpm@9.15.4" } diff --git a/src/base/data/dummy/index.ts b/src/base/data/dummy/index.ts index c2eb8d8..e977b34 100644 --- a/src/base/data/dummy/index.ts +++ b/src/base/data/dummy/index.ts @@ -65,7 +65,7 @@ export const articles = [ id: "author-1", name: "Priyanka Pal", avatar: - "https://images.unsplash.com/photo-1494790108755-2616b612b786?w=150&h=150&fit=crop&crop=face", + "https://ui-avatars.com/api/?name=Priyanka+Pal&size=150&background=0ea5e9&color=fff&bold=true", bio: "React developer and community organizer at React Kolkata", profileUrl: "https://github.com/priyankarpal", }, @@ -88,7 +88,7 @@ export const articles = [ id: "author-2", name: "Badal Jain", avatar: - "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face", + "https://ui-avatars.com/api/?name=Badal+Jain&size=150&background=8b5cf6&color=fff&bold=true", bio: "Full-stack developer and open source contributor", profileUrl: "https://github.com/badaljain", }, @@ -111,7 +111,7 @@ export const articles = [ id: "author-3", name: "Dev Community", avatar: - "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=150&h=150&fit=crop&crop=face", + "https://ui-avatars.com/api/?name=Dev+Community&size=150&background=10b981&color=fff&bold=true", bio: "Collective wisdom from React Kolkata community", profileUrl: "https://github.com/reactplay", }, @@ -134,7 +134,7 @@ export const articles = [ id: "author-1", name: "Priyanka Pal", avatar: - "https://images.unsplash.com/photo-1494790108755-2616b612b786?w=150&h=150&fit=crop&crop=face", + "https://ui-avatars.com/api/?name=Priyanka+Pal&size=150&background=0ea5e9&color=fff&bold=true", bio: "React developer and community organizer at React Kolkata", profileUrl: "https://github.com/priyankarpal", }, @@ -157,7 +157,7 @@ export const articles = [ id: "author-2", name: "Badal Jain", avatar: - "https://images.unsplash.com/photo-1472099645785-5658abf4ff4e?w=150&h=150&fit=crop&crop=face", + "https://ui-avatars.com/api/?name=Badal+Jain&size=150&background=8b5cf6&color=fff&bold=true", bio: "Full-stack developer and open source contributor", profileUrl: "https://github.com/badaljain", },