Skip to content

feat(library): add Enterprise Onchain newsletter feed#24

Draft
minimalsm wants to merge 2 commits into
mainfrom
feat/newsletter-feed
Draft

feat(library): add Enterprise Onchain newsletter feed#24
minimalsm wants to merge 2 commits into
mainfrom
feat/newsletter-feed

Conversation

@minimalsm

Copy link
Copy Markdown
Collaborator

Summary

  • Automatically fetches newsletters from Enterprise Onchain's Substack RSS feed
  • Merges feed items into the library alongside existing curated content
  • Uses ISR with daily revalidation (no GitHub Actions needed)
  • Images come from RSS enclosure URLs

Implementation

  • New server action: fetchEnterpriseOnchainFeed.ts - parses RSS XML, extracts title/link/date/image
  • Updated library/data.ts - exports async getLibraryItems() that includes feed
  • Updated library/page.tsx - calls async function to get merged items

Test plan

  • Visit /library and verify Enterprise Onchain newsletters appear
  • Verify items are sorted by date (newest first)
  • Verify images load from Substack CDN
  • Verify ISR revalidation works (check response headers)

- Install next-intl for App Router i18n
- Restructure pages under [locale] directory
- Add middleware for locale detection
- Create translations for all pages (302 keys each):
  - messages/en.json (English)
  - messages/zh.json (Chinese Simplified)
  - messages/es.json (Spanish)
- Add ICU interpolation for dynamic data
- Add LanguageSwitcher component to header/mobile drawer
- Add hreflang meta tags via getMetadata()
- Configure sitemap alternateRefs for all locales
- Add translation validation script (pnpm validate:i18n)
- Add library post directories for future translations

URL structure: / (en), /zh/*, /es/*
Automatically fetch and display newsletters from Enterprise Onchain's
Substack RSS feed in the library. Uses ISR with daily revalidation.

- Add fetchEnterpriseOnchainFeed server action
- Update library data to merge feed items with existing content
- Sort all items by date
@netlify

netlify Bot commented Jan 23, 2026

Copy link
Copy Markdown

Deploy Preview for institutions-subdomain ready!

Name Link
🔨 Latest commit eec150b
🔍 Latest deploy log https://app.netlify.com/projects/institutions-subdomain/deploys/697308b59a00780008a5fde6
😎 Deploy Preview https://deploy-preview-24--institutions-subdomain.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@minimalsm
minimalsm marked this pull request as draft January 23, 2026 11: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.

1 participant