Skip to content

Commit

Permalink
fix code markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
i14h authored Dec 11, 2024
1 parent cf599e0 commit 4a05023
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions storage-resize-images/PREINSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ The extension can publish a resize completion event, which you can optionally en

Furthermore, you can choose if you want to receive events upon the successful completion of the image resizing. Hence, you can do anything based on the event you will receive. For example, you can use [EventArc gen2 functions](https://firebase.google.com/docs/functions/custom-events#handle-events) to be triggered on events published by the extension.
### Example Event Handler for Successful Resize Operation

```typescript
import * as functions from 'firebase-functions';
import { onCustomEventPublished } from 'firebase-functions/v2/eventarc';
Expand All @@ -29,6 +30,7 @@ export const onImageResized = onCustomEventPublished(
return Promise.resolve();
}
);
```

#### Detailed configuration information

Expand Down

0 comments on commit 4a05023

Please sign in to comment.