Skip to content

Commit 41dddad

Browse files
committed
Clarify comments around setting a host
1 parent 5472015 commit 41dddad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

handler.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ const resetPrerenderCloud = () => {
2929
// prerendercloud.set("protocol", "http");
3030

3131
// 3. host (mandatory)
32-
// Set this to your CloudFront distribution URL (or whatever your official host is).
32+
// Set this to your custom domain (something like example.com)
33+
// or if you don't have one, then the CloudFront distribution URL (something like d1pxreml448ujs.cloudfront.net)
3334
// This is what service.prerender.cloud will prerender, and if we didn't
3435
// set it, the only info we'd have access to during Lambda@Edge runtime is the host of the origin (S3)
3536
// which would require additional configuration to make it publicly accessible (and it just makes things more confusing).
36-
// example value: d1pxreml448ujs.cloudfront.net or example.com (don't include the protocol)
37+
// example value: example.com or d1pxreml448ujs.cloudfront.net (don't include the protocol)
3738
// prerendercloud.set("host", "");
3839

3940
// 4. removeTrailingSlash (recommended)

0 commit comments

Comments
 (0)