diff --git a/docs/pages/common_issues/isr.mdx b/docs/pages/common_issues/isr.mdx index 182333e0..baac6f68 100644 --- a/docs/pages/common_issues/isr.mdx +++ b/docs/pages/common_issues/isr.mdx @@ -30,8 +30,8 @@ import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-clo const cloudFront = new CloudFrontClient({}); -function invalidateCFPaths(paths: string[]) { - cloudFront.send( +async function invalidateCFPaths(paths: string[]) { + await cloudFront.send( new CreateInvalidationCommand({ // Set CloudFront distribution ID here DistributionId: distributionId,