Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.15 KB

meteor-atmosphere.md

File metadata and controls

41 lines (31 loc) · 1.15 KB

Meteor.js Integration via Atmosphere

Installation

meteor add webapp
meteor add ostrio:spiderable-middleware

Update HTML Markup

To cause the special behavior of web crawlers on JavaScript powered websites use fragment meta tag. Although it's officially deprecated by Google search engine, it's may be used by other search engines and web crawlers. Learn more:

<html>
  <head>
    <meta name="fragment" content="!">
    <!-- ... -->
  </head>
  <body>
    <!-- ... -->
  </body>
</html>

Middleware integration

See more examples here.

import Spiderable from 'meteor/ostrio:spiderable-middleware';

WebApp.connectHandlers.use(new Spiderable({
  rootURL: 'http://example.com',
  serviceURL: 'https://render.ostr.io',
  auth: 'APIUser:APIPass'
}));