The cloudFront_function.js file is a CloudFront function to redirect URLs from docs.fingerprintjs.com to the new address: dev.fingerprint.com.
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
- Go to CloudFront functions management. Open the function.
- Paste the function code from cloudFront_function.js, click "Save changes".
- Open the "Publish" tab and publish the function.