Middlewares

Sign up and get your Prerender token first if you haven't done that yet.

Prerender.io officially maintained middleware:

Community maintained middleware:

ExpressJS (Javascript)

View source on GitHub

Run this command in your node project.

shell npm install prerender-node --save

And when you set up your express app...

javascript app.use(require('prerender-node').set('prerenderToken', 'YOUR_TOKEN'));

Rails (Ruby)

View source on GitHub

Add the middleware gem to your Gemfile.

shell gem 'prerender_rails'

In config/environment/production.rb...

ruby config.middleware.use Rack::Prerender, prerender_token: 'YOUR_TOKEN'

Nginx

View source on GitHub

View the nginx config here:

https://github.com/prerender/prerender-nginx

Apache

View source on GitHub

View the Apache config here:

https://github.com/prerender/prerender-apache

Cloudflare

The Cloudflare integration is done using a simple worker. More details and example here: https://github.com/prerender/prerender-cloudflare-worker

Spring (Java)

View source on GitHub

Installation instructions should be in the README here:

https://github.com/greengerong/prerender-java

ASP.NET MVC (C#)

View source on GitHub

Installation instructions should be in the README here: https://github.com/greengerong/Prerender_asp_mvc

Zend Framework2 (PHP)

View source on GitHub

Installation instructions should be in the README here: https://github.com/zf-fr/zfr-prerender

Symfony 2 (PHP)

View source on GitHub

Installation instructions should be in the README here: https://github.com/rjanot/YuccaPrerenderBundle

Laravel (PHP)

Installation instructions should be in the README here:

https://github.com/codebar-ag/Laravel-Prerender

https://github.com/JeroenNoten/laravel-prerender

Tornado (Python)

View source on GitHub

Installation instructions should be in the README here: https://github.com/dailymuse/torender

Django (Python)

View source on GitHub

Installation instructions should be in the README here: https://github.com/skoczen/django-seo-js

Spray (Scala)

View source on GitHub

Installation instructions should be in the README here: https://github.com/Jarlakxen/spray-prerender

Koa (Javascript)

View source on GitHub

Installation instructions should be in the README here: https://github.com/RisingStack/koa-prerender

Hapi (Javascript)

View source on GitHub

Installation instructions should be in the README here: https://github.com/wrangr/hapi-prerender

HAProxy

View source on GitHub

View the HAProxy config here: https://gist.github.com/roylines/7dc14c419523975daaa7

CloudFront

View source on GitHub

The CloudFront integration is done using Lambda@Edge functions. View the example here: https://github.com/jinty/prerender-cloudfront/blob/master/prerender-cloudfront.yaml

Akamai

There is a blogspot that descibes the integration with akamai here: https://developer.akamai.com/blog/2020/01/14/improve-seo-akamai-and-prerenderio

Netlify

You need to ask netlify support to turn on prerender.io integration for you:

https://docs.netlify.com/site-deploys/post-processing/prerendering/

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.