Rails (Ruby)
  • 09 Feb 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Rails (Ruby)

  • Dark
    Light
  • PDF

Article Summary

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'

Was this article helpful?

What's Next