Skip to content

Commit

Permalink
chore: added comment explaining health check
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOrangePuff committed May 22, 2023
1 parent 44167e2 commit f21abb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/prerender-fargate/lib/prerender-fargate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class PrerenderFargate extends Construct {
}
);

// As the prerender service will return a 401 on all unauthorised requests
// it should be considered healthy when receiving a 401 response
fargateService.targetGroup.configureHealthCheck({
path: "/health",
interval: Duration.seconds(120),
Expand Down

0 comments on commit f21abb7

Please sign in to comment.