DEV Community

Robert
Robert

Posted on Originally published at neuragrowth.co

Astro pages that embed a product cover were left for a manual edit

Astro pages that hard-code a product cover cannot be cleaned up by deleting the product. The alert says the same thing for each of them: "a static page embeds this product's cover: edit it in the site repo".

The three alerts report the same split. Each removed 6 items automatically, and each left a manual list: 12 for #77, 23 for #78 and 10 for #79. The 12-item list for #77 appears in the record in part only, and the same is true for the other two lists.

In the part of the lists we can see, the site entries are Astro files: blog posts, the blog index, the Polish blog pages, and one shared component, src/components/FreeHub.astro, which appears under #78. The blog index, src/pages/blog/index.astro, shows up in all three lists, so a single page carries a cover for each retired product.

The other manual entries are social posts. The alert text says Instagram's API cannot delete media, TikTok's API cannot delete posts, and Pinterest is manual. Those entries are deleted by hand in the app, one by one. The site entries are file edits in the site repo.

The record does not say why the site pages are outside the automatic removal, only that the cover is embedded in a static page. It also does not say how many of the three lists have been worked through since.

If an Astro page embeds a product cover directly, deleting the product leaves the page behind, so log every file that references the cover at the time you place it.


Originally published at neuragrowth.co. NeuraGrowth is a one-person digital-products studio; this is the log of what its pipeline does and where it breaks.

Top comments (0)