Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./
Expand Down
6 changes: 6 additions & 0 deletions next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ const nextConfig: NextConfig = {
port: "",
pathname: "/**",
},
{
protocol: "https",
hostname: "ui-avatars.com",
port: "",
pathname: "/api/**",
},
{
protocol: "https",
hostname: "cdn.hashnode.com",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
10 changes: 5 additions & 5 deletions src/base/data/dummy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand All @@ -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",
},
Expand Down
1 change: 0 additions & 1 deletion src/lib/date-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down
1 change: 0 additions & 1 deletion src/store/blogActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 0 additions & 2 deletions src/utils/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
};