Folks - just wanted to share my experience setting up seo for our meteorjs site.
I have a combination of blaze and react templates in the site.
- I tried prerender pachage. I tried various ways but i couldnt get it to accurately wait for the subscriptions to finish before caching
- i tried the prerender npm directly. it worked better but in a lot of the pages it still just showed the loader…
- I also tried another service called prerender.cloud. that did not seem to cache the pages at all
- then i tried seo4ajax. it worked perfectly. it automatically crawled the site and found all the pages. provided my with a sitemap to submit to google. and the npm was super simple to setup -
FYI - I have no affiliation with the site or am not being incentivized to promote it. just that after 2 days of trying with prerender - it just took me an hour to set this up.
import { Meteor } from 'meteor/meteor';
import { WebApp } from 'meteor/webapp';
// eslint-disable-next-line camelcase
import connect_s4a from 'connect-s4a';
Meteor.startup(() => {
if (Meteor.settings.private.seo4ajax) {
WebApp.connectHandlers.use(connect_s4a(Meteor.settings.private.seo4ajax));
}
});