superstatic-prerender

A prerendering service to allow static AJAX apps to get proper search engine juice.

Showing:

Popularity

Downloads/wk

2

GitHub Stars

5

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

3

Size (min+gzip)

42.9KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Superstatic Prerender

A prerendering service to allow static AJAX apps to get that sweet sweet search engine juice.

NPM Module Build Status

Client Configuration

Options

  • refetch: Can either be an integer number of days to keep before refetching or an object describing URLs and their individual refetch length.
  • blacklist: An array of routes that should be ignored by the prerender service. Anything that requires a login to access should be blacklisted, as an example.
  • whitelist: If a refetch routeset is present and this is true, only the routes specified in refetch will be allowed for Prerender. Otherwise, you can set it to an array of routes.

Examples

{
  "prerender": {
    "refetch": 7,
    "blacklist": ["/account/**"]
  }
}
{
  "prerender": {
    "refetch": {
      "/": 1,
      "/articles/**": 7
    },
    "whitelist": true
  }
}

Server Configuration

require('superstatic-prerender')({
  host: process.env.PRERENDER_SERVICE_URL, // optional prerender server hostname
  token: process.env.PRERENDER_TOKEN // if using prerender.io service
});

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial