Skip to content

fix(blog): use unoptimized tag for image assets - #2374

Merged
waleedlatif1 merged 1 commit into
stagingfrom
fix/blog
Dec 15, 2025
Merged

fix(blog): use unoptimized tag for image assets#2374
waleedlatif1 merged 1 commit into
stagingfrom
fix/blog

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • use unoptimized tag for image assets

Type of Change

  • Bug fix

Testing

Tested manually

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercelBot commented Dec 15, 2025

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
ProjectDeploymentReviewUpdated (UTC)
docsSkippedSkippedDec 15, 2025 5:28am

@greptile-apps

Copy link
Copy Markdown
Contributor

Greptile Overview

Greptile Summary

This PR adds the unoptimized prop to all Next.js Image components used in the blog/studio pages. This bypasses Next.js's built-in image optimization API for blog assets.

  • Added unoptimized to blog post header images, related post cards, author avatars, blog listing images, and MDX inline images
  • Follows existing patterns in the codebase where unoptimized is already used for user avatars, brand logos, and other images
  • Blog images are stored locally in /public/studio/ and are already optimized PNG files

Confidence Score: 5/5

  • This PR is safe to merge - simple prop additions with no logic changes or security implications.
  • The change is minimal and consistent: adding unoptimized boolean prop to Image components. No business logic changes, no new dependencies, and follows existing codebase patterns.
  • No files require special attention.

Important Files Changed

File Analysis

FilenameScoreOverview
apps/sim/app/(landing)/studio/[slug]/page.tsx5/5Added unoptimized prop to main blog post image and related posts images, bypassing Next.js image optimization.
apps/sim/app/(landing)/studio/authors/[id]/page.tsx5/5Added unoptimized prop to author avatar and post card images.
apps/sim/app/(landing)/studio/page.tsx5/5Added unoptimized prop to blog listing page post images.
apps/sim/lib/blog/mdx.tsx5/5Added unoptimized prop to MDX image component for inline blog images.

Sequence Diagram

sequenceDiagram
participant Browser
participant NextJS as Next.js Server
participant Public as Public Folder
Browser->>NextJS: Request blog page
NextJS->>Public: Fetch image (unoptimized)
Public-->>NextJS: Return original image
NextJS-->>Browser: Serve image directly (no optimization)
Loading

@greptile-appsgreptile-appsBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

@waleedlatif1
waleedlatif1 merged commit 0acd860 into stagingDec 15, 2025
10 checks passed
@waleedlatif1
waleedlatif1 deleted the fix/blog branch December 15, 2025 07:16
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@waleedlatif1