Node(Express.js)
  • 08 Feb 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:



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 token.
    You can find your Prerender token at the top right of your Prerender Dashboard.

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