Middlewares
Sign up and get your Prerender token first if you haven't done that yet.
Prerender.io officially maintained middleware:
Community maintained middleware:
- Spring (Java)
- ASP.NET MVC (C#)
- Zend Framework2 (PHP)
- Symfony 2 (PHP)
- Laravel (PHP)
- Tornado (Python)
- Django (Python)
- Spray (Scala)
- Koa (Javascript)
- Hapi (Javascript)
- HAProxy
ExpressJS (Javascript)
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)
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 the nginx config here:
https://gist.github.com/thoop/8165802
Apache
View the Apache config here:
https://github.com/prerender/prerender-apache
Spring (Java)
Installation instructions should be in the README here:
https://github.com/greengerong/prerender-java
ASP.NET MVC (C#)
Installation instructions should be in the README here: https://github.com/greengerong/Prerender_asp_mvc
Zend Framework2 (PHP)
Installation instructions should be in the README here: https://github.com/zf-fr/zfr-prerender
Symfony 2 (PHP)
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)
Installation instructions should be in the README here: https://github.com/dailymuse/torender
Django (Python)
Installation instructions should be in the README here: https://github.com/skoczen/django-seo-js
Spray (Scala)
Installation instructions should be in the README here: https://github.com/Jarlakxen/spray-prerender
Koa (Javascript)
Installation instructions should be in the README here: https://github.com/RisingStack/koa-prerender
Hapi (Javascript)
Installation instructions should be in the README here: https://github.com/wrangr/hapi-prerender
HAProxy
View the HAProxy config here: https://gist.github.com/roylines/7dc14c419523975daaa7
Cloudflare
The Cloudflare integration is done using a simple worker. More details and example here: https://github.com/prerender/prerender-cloudflare-worker