Skip to content

fix: migrate PNG assets from Git LFS to regular git objects (fixes #25)#26

Merged
devpathindcommunity-india merged 1 commit into
masterfrom
fix/migrate-png-from-lfs
May 16, 2026
Merged

fix: migrate PNG assets from Git LFS to regular git objects (fixes #25)#26
devpathindcommunity-india merged 1 commit into
masterfrom
fix/migrate-png-from-lfs

Conversation

@Aditya948351

Copy link
Copy Markdown
Collaborator

Summary

This PR fixes the build error reported in #25 by migrating all PNG assets from Git LFS to regular git objects.

Root Cause

The .gitattributes file was tracking *.png via Git LFS. When contributors forked and cloned the repo without git-lfs installed, they received broken LFS pointer files instead of the actual PNG binaries, causing Next.js to throw:

\
Module not found: Can't resolve '@/assets/oscg26.png'
\\

Changes Made

  • Removed *.png filter=lfs diff=lfs merge=lfs -text\ from .gitattributes\
  • Untracked all PNG files from LFS and re-added them as regular git binaries
  • Files migrated: \oscg26.png, \complaint-illustration.png, \certificate-template.png, and all favicon/icon PNGs in \public/images/\

Why This Is The Right Fix

File Type LFS? Reason
*.png\ ❌ Removed Web assets are small (< 1MB), no benefit from LFS
*.mp3 / *.wav\ ✅ Kept Audio files are legitimately large
*.mp4\ ✅ Kept Video files are legitimately large
*.glb\ ✅ Kept 3D model files are legitimately large

Impact

  • Contributors can now clone and run the project without git-lfs installed
  • Eliminates the \Module not found\ build error for all new contributors
  • Improves GSSoC'26 contributor onboarding experience

Closes #25

Copilot AI review requested due to automatic review settings May 16, 2026 18:07
Removes *.png from .gitattributes LFS tracking so contributors can
clone and run the project without git-lfs installed. PNG files in this
web project are small UI assets that don't benefit from LFS.

Audio (*.mp3, *.wav), video (*.mp4), and 3D model (*.glb) files
remain in LFS as they are legitimately large.

Fixes contributor onboarding issue where oscg26.png and other PNG
assets were stored as LFS pointers, causing Next.js build errors for
contributors who cloned without git-lfs.

Closes #25

Copilot AI 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.

Pull request overview

This PR resolves the local build failure from #25 by removing Git LFS tracking for PNG assets so that clones without git-lfs receive real PNG binaries instead of LFS pointer files.

Changes:

  • Removed the *.png filter=lfs diff=lfs merge=lfs -text rule from .gitattributes so PNGs are no longer tracked via Git LFS.
  • (Per PR intent) Migrates previously-LFS-tracked PNG assets back into normal Git objects to prevent Next.js “Module not found” errors for new contributors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@devpathindcommunity-india devpathindcommunity-india merged commit e65002e into master May 16, 2026
4 checks passed
@Aditya948351 Aditya948351 removed level:beginner Beginner level issues level:intermediate Intermediate level issues level:advanced Advanced issues quality:clean gssoc-26 labels May 17, 2026
@Aditya948351 Aditya948351 removed mentor: waiting for mentors Mentors need to contact the repo owner help wanted labels May 17, 2026
Sign up for free to 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.

[BUG] Build Error: Missing oscg26.png Asset Prevents Local Development

3 participants