mirror of
https://github.com/andwati/andwati.com.git
synced 2026-10-20 18:14:26 +00:00
The enrichment guard was `if (entry.cover_image) return entry;` — meaning once *any* cover_image was set, including a raw external URL you pasted into Strapi by hand, it was treated as "already done" and never downloaded. The site's coverExists() check only looks for local /covers/... files, so a remote URL silently never rendered. - content-sync.ts: enrichBookshelfEntry now branches on whether cover_image is an http(s) URL (cache it via the new cacheRemoteImage) vs. unset (existing ISBN/DOI lookup) vs. already a local path (left alone). - bookshelf-covers.ts: cacheRemoteImage() downloads and caches any image URL. Also fixes a real bug caught while testing this against the actual O'Reilly cover URL from the reported entry: their CDN labels WebP responses as Content-Type: image/jpeg, so trusting the header would've cached it with the wrong extension. Now sniffs the real file signature (RIFF/WEBP, PNG, JPEG, GIF magic bytes) instead of trusting either the header or the URL. Verified the download+sniff logic directly against the real cover URL from the reported entry (Designing Data-Intensive Applications) — correctly detects and saves as .webp. Didn't touch the running dev Strapi/DB while testing.
🚀 Getting started with Strapi
Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds.
develop
Start your Strapi application with autoReload enabled. Learn more
npm run develop
# or
yarn develop
start
Start your Strapi application with autoReload disabled. Learn more
npm run start
# or
yarn start
build
Build your admin panel. Learn more
npm run build
# or
yarn build
⚙️ Deployment
Strapi gives you many possible deployment options for your project including Strapi Cloud. Browse the deployment section of the documentation to find the best solution for your use case.
yarn strapi deploy
📚 Learn more
- Resource center - Strapi resource center.
- Strapi documentation - Official Strapi documentation.
- Strapi tutorials - List of tutorials made by the core team and the community.
- Strapi blog - Official Strapi blog containing articles made by the Strapi team and the community.
- Changelog - Find out about the Strapi product updates, new features and general improvements.
Feel free to check out the Strapi GitHub repository. Your feedback and contributions are welcome!
✨ Community
- Discord - Come chat with the Strapi community including the core team.
- Forum - Place to discuss, ask questions and find answers, show your Strapi project and get feedback or just talk with other Community members.
- Awesome Strapi - A curated list of awesome things related to Strapi.
🤫 Psst! Strapi is hiring.