Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.58 KB

readme.md

File metadata and controls

28 lines (20 loc) · 1.58 KB

Documentation redirect

The cloudFront_function.js file is a CloudFront function to redirect URLs from docs.fingerprintjs.com to the new address: dev.fingerprint.com.

How to deploy

Initial setup

Go to CloudFront functions management. Create a new function, type Redirects from the old documentation to the new one (https://github.com/fingerprintjs/docs-redirect) in the "Description" field. Paste the function code from cloudFront_function.js, click "Save changes". Open the "Publish" tab and publish the function.

Go to CloudFront management. Create a new distribution. Leave everything default except:

  • Type dev.null or anything else in the "Origin domain" field
  • Type docs.fingerprintjs.com in the "Alternate domain name" field
  • Create (if not created) and choose an SSL certificate for the domain in the "Custom SSL certificate" field
  • Choose the CloudFront function created earlier in the "Viewer request" field
  • Type Redirects from the old documentation to the new one (https://github.com/fingerprintjs/docs-redirect) in the "Description" field

Function code update

  1. Go to CloudFront functions management. Open the function.
  2. Paste the function code from cloudFront_function.js, click "Save changes".
  3. Open the "Publish" tab and publish the function.