Skip to content

Commit

Permalink
fix: make invalidateCFPaths function async in docs (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
sommeeeer authored Jan 5, 2024
1 parent 83207d8 commit eb08980
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

1 comment on commit eb08980

@vercel
Copy link

@vercel vercel bot commented on eb08980 Jan 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

open-next – ./

open-next.vercel.app
open-next-git-main-sst-dev.vercel.app
open-next-sst-dev.vercel.app

Please sign in to comment.