Skip to content

Conversation

@dergigi
Copy link
Member

@dergigi dergigi commented Aug 13, 2025

The RSS feed generation was silently failing due to JSON import assertion compatibility issues with contentlayer generated files. This fix replaces the problematic contentlayer imports with direct JSON file reading using fs module, ensuring RSS feed and sitemap generation work properly without dependency on experimental Node.js flags.

NODE_OPTIONS='--experimental-json-modules' is not required anymore as per nodejs/node#41736

- Remove try-catch blocks that silently skipped RSS generation
- Replace contentlayer import with direct JSON file reading using fs
- Fix JSON import assertion compatibility issues
- Update RSS, sitemap, and search generation scripts
- Ensure build process completes successfully with proper error handling
@vercel
Copy link

vercel bot commented Aug 13, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Project Deployment Preview Comments Updated (UTC)
os-website Ready Preview Comment Aug 13, 2025 8:34am

The flag was unflagged in Node.js 16.15.0 and is no longer needed with Node.js >=22.0.0. Build process works correctly without it.
@dergigi
Copy link
Member Author

dergigi commented Aug 13, 2025

I'll go ahead and merge this since /feed.xml is working again.

@dergigi dergigi merged commit 368c57a into master Aug 13, 2025
3 checks passed
@dergigi dergigi deleted the fix-rss branch August 13, 2025 08:38
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.

2 participants