Middleware custom domain purge cache

Hello guys,

we have a NextJS 14 App with Sanity v3 as CMS. It’s similar to a website builder and we use the Middleware to show the site on custom domains. Sadly the revalidate method only works with the specific path (https://websitebuilder.com/site/website1.com) and not with the custom domain (https://website1.com). So when we update content for a specific site on Sanity it doesn’t render fresh data on the custom domain. Is there a way to purge/delete the cache for a single specific domain (like https://website1.com) ?

Thanks in advance :pray:

Have a nice day