Skip to content

Commit

Permalink
fix: make invalidateCFPaths function async in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sommeeeer committed Jan 5, 2024
1 parent 83207d8 commit d36beda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/pages/common_issues/isr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d36beda

Please sign in to comment.