Node(Express.js)
  • 20 Jun 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Node(Express.js)

  • Dark
    Light
  • PDF

Article summary

If you're looking for a way to improve your Node (Express.js) front-end's SEO performance, integrating Prerender could be the solution you've been looking for. With Prerender, your pages will be rendered on our end before being returned to the search engine bots, resulting in faster loading times and better search engine optimization. In this guide, we'll walk you through the steps to integrate Prerender into your Node (Express.js) front-end, so you can start seeing the benefits for yourself.

Disclaimer

This integration can not be installed directly into a React,Angular or Vue project.
Only use this integration if Express is handling every incoming connection and not just API calls.

Video guide:


Prerender token 
The location of the Prerender token has changed. You can find it under the Security and Access menu under Prerender Token.

Text guide:
View source on GitHub

1. Navigate to your Express.js directory, then install the prerender-node module with the code below. 

npm install prerender-node --save

2. Then paste the code below into your application's .js file and replace the placeholder with your Prerender.io Token from the Security and Access menu.

app.use(require('prerender-node').set('prerenderToken', 'YOUR\_TOKEN'));

3. Then restart your Express.js application if necessary.

4. Check if your integration is working properly.
You can check your Prerender integration based on this guide




Was this article helpful?

What's Next