When I first implemented SEO with mdg:seo
, I did not notice that would route all pages to prerender.io
, which can get pretty costly.
So I looked at the documentation again and saw that the underlying npm package supports white- and blacklisting of paths. However, there is no documentation how I can setup this using mdg:seo
. I tried to do it like this:
import { PrerenderIO } from 'meteor/mdg:seo';
PrerenderIO.whitelisted('/');
but it did not work. I guess it is because this has to configured before the middleware is bound to Express.
In the issues of the package, I saw that this question has been raised back in 2016 (!) and hasn’t been answered yet. I can’t believe that such an important SEO optimization thing would not work. But maybe I just got it wrong and there’s an easy way to do this?
Who else is using SEO, and how did you setup whitelisting of paths?