Skip to content

Commit eb08980

Browse files
authored
fix: make invalidateCFPaths function async in docs (#344)
1 parent 83207d8 commit eb08980

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/pages/common_issues/isr.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-clo
3030

3131
const cloudFront = new CloudFrontClient({});
3232

33-
function invalidateCFPaths(paths: string[]) {
34-
cloudFront.send(
33+
async function invalidateCFPaths(paths: string[]) {
34+
await cloudFront.send(
3535
new CreateInvalidationCommand({
3636
// Set CloudFront distribution ID here
3737
DistributionId: distributionId,

0 commit comments

Comments
 (0)