#Handling existing comments from a WordPress site in Astro

1 messages · Page 1 of 1 (latest)

bleak verge
#

I'm quite far into rebuilding an existing WordPress blog site in Astro. The Astro site will serve as an archive of the existing site. Something I'm finding challenging is figuring out the best approach to recreate the existing comments. There will no longer be any new comments on the site's blog posts.

I used Content Collections for the blog posts. I'm not sure how to separate the comments out for each post. Do I create comment one, comment two etc. in an object/array in Zod? Or would another approach be better? And what about conditional situations, when there are no comments or the comments were closed?

gloomy rune