Skip to content

[recovery] fix: make image placeholder cache I/O best-effort on read-only runtime FS#18793

Draft
pettinarip wants to merge 1 commit into
devfrom
recovery/fix/placeholder-cache-readonly-fs
Draft

[recovery] fix: make image placeholder cache I/O best-effort on read-only runtime FS#18793
pettinarip wants to merge 1 commit into
devfrom
recovery/fix/placeholder-cache-readonly-fs

Conversation

@pettinarip

Copy link
Copy Markdown
Member

setImagePlaceholders unconditionally created and wrote to the
src/data/placeholders disk cache. When MDX is compiled on-demand in the
Netlify serverless runtime the filesystem is read-only and that directory
is not bundled, so mkdirSync/writeFileSync threw
"ENOENT: no such file or directory, mkdir 'src/data/placeholders'",
surfacing as a next-mdx-remote compile error and a 500.

The disk cache is only a build-time optimization; blur placeholders are
still generated in memory via getPlaiceholder. Wrap the directory creation
and cache writes so a read-only FS degrades gracefully instead of crashing
page rendering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pettinarip pettinarip added the recovery-agent Created by the Recovery Agent label Jul 14, 2026
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit 552dc6f
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/6a562a4e5507da00094ad8f6
😎 Deploy Preview https://deploy-preview-18793.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 62 (🟢 up 6 from production)
Accessibility: 95 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (no change from production)
PWA: 59 (🔴 down 1 from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the tooling 🔧 Changes related to tooling of the project label Jul 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

recovery-agent Created by the Recovery Agent tooling 🔧 Changes related to tooling of the project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant