This package has been deprecated

Author message:

This package has been deprecated. Please use @aligent/cdk-prerender-proxy instead.

@aligent/aws-prerender-proxy-stack
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Prerender Proxy

This library provides two constructs and a stack that creates two Lambda@Edge functions to use prerender.io as a Cloudfront Origin for site indexers (Google, Bing, etc).

The prerender-check is a viewer-request function that will check if a requester is from a indexer and if it is adds a header so that the second function prerender (origin-request) will alter the origin to prerender.io.

The prerender will function also make a HEAD request to a nominated backend to detect 301 and 302 redirects and if so forward them on to the frontend. This ensures that your SEO rankings are not penalized by having multiple pages at the same URL.

These functions are intended to be addeed to an existing Cloudfront

Stack Props

redirectBackendOrigin: The backend origin to make the HEAD request to. redirectFrontendHost: This hostname is used to replace the backend host for any redirects that contain the backend host. prerenderToken: Your prerender.io authentication token

Readme

Keywords

none

Package Sidebar

Install

npm i @aligent/aws-prerender-proxy-stack

Weekly Downloads

30

Version

0.0.6

License

GPL-3.0-only

Unpacked Size

2.24 MB

Total Files

204

Last publish

Collaborators

  • torbjorn.vanheeswijck
  • aligent-bot
  • aligent-danielvanderploeg
  • luke-denton-aligent
  • jarrod.swift