Skip to content

Commit 3dd303b

Browse files
committed
Added build config section to pdf-to-image doc example
1 parent 1679a18 commit 3dd303b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/examples/pdf-to-image.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,20 @@ description: "This example will show you how to turn a PDF into an image using M
88

99
This example demonstrates how to use Trigger.dev to turn a PDF into a series of images using MuPDF and upload them to Cloudflare R2.
1010

11+
## Update your build configuration
12+
13+
To use this example, add these build settings to your `trigger.config.ts` file:
14+
15+
```ts trigger.config.ts
16+
export default defineConfig({
17+
project: "<project ref>",
18+
// Your other config settings...
19+
build: {
20+
extensions: [aptGet({ packages: ["mupdf-tools", "curl"] })],
21+
},
22+
});
23+
```
24+
1125
## Task code
1226

1327
```ts trigger/pdfToImage.ts

0 commit comments

Comments
 (0)