
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
localize-prerender
Advanced tools
Node.js middleware that prerenders Node.js apps using Localize for enhanced SEO. This middleware detects requests from search engine bots and crawlers, and replies with prerendered HTML via our hosted prerendering API.
Questions? We're happy to help. Email us!.
Install via npm.
npm install localize-prerender --save
Add the prerender middleware to your server:
var prerender = require('localize-prerender');
app.use(prerender.middleware({
rootDomain: 'http://yourwebsite.com'
}));
Include this middleware early in your application - before your application routes are created.
var prerender = require('localize-prerender');
Creates the Localize prerender middleware. Accepted options:
rootDomain
Required. The root domain of your website. For example, http://yourwebsite.com
prerenderTest
Optional. When true, all requests are prerendered, not just requests from robots. Only useful for testing and debugging - do not activate in production.When a request is made to your server using this middleware, here's what happens:
next()
is called and the middleware is bypassed.next()
is called and the middleware is bypassed.This is a hosted prerendering service, meaning that the prerendering of your page and caching is offloaded to our servers.
Performance:
There are two built in layers of caching. We use s3 on our server to cache your prerendered HTML, and the reply is sent through the Amazon Cloudfront CDN to ensure extremely low latency response no matter where your server is.
Forks and pull requests welcome!
Localize. For support email support@localizejs.com!
FAQs
Localize prerendering middleware for Node.js
The npm package localize-prerender receives a total of 2 weekly downloads. As such, localize-prerender popularity was classified as not popular.
We found that localize-prerender demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.