Available integrations
  • 18 Jan 2023
  • 2 Minutes to read
  • Contributors
  • Dark
    Light
  • PDF

Available integrations

  • Dark
    Light
  • PDF

and get your Prerender.io token first if you don't have one yet.

Prerender.io is a 100% server side component, so technically it doesn't matter what frontend framework you have, the only thing that matters is the way you serve your static files, such as HTML, JS, CSS and so on.

Your JavaScript application may be served in various ways, for example using a Node.js (Express.js) server, or Apache, NGINX, Java Spring, IIS, or cached by a CDN such as Cloudflare. The only thing you need to do is to find the middleware or configuration example for your backend, set it up, and you're good to go.

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'));

Using the express middleware with nuxtjs

In the nuxt.config.js add a new middleware.

serverMiddleware: [
    '~/prerender-middleware.js'
]

And the prerender-middleware.js :

const express = require('express')
const app = express();

app.use(require('prerender-node').set('prerenderToken', 'API TOKEN'));

module.exports = {
  path: '/',
  handler: app
}

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

Netlify

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

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

Magento 2

Installation instructions are in the README : https://github.com/magento/magento2-upward-connector


Was this article helpful?