Skip to content

Commit

Permalink
Adding docs to run locally
Browse files Browse the repository at this point in the history
  • Loading branch information
bakerac4 committed Jun 17, 2024
1 parent 9826d39 commit 1c7abfe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,10 @@

Gavant package that handles requests to load an html page and return a pdf using s3.

To run this package locally - `LOCAL_CHROME_PATH` must be provided in the command line i.e.

```
LOCAL_CHROME_PATH="/PATH_TO_ADDON/html-to-pdf/node_modules/puppeteer/.local-chromium/mac-1011831/chrome-mac/Chromium.app/Contents/MacOS/Chromium" yarn test
```

Releases are handled by `release-it` and changelog is automatically generated using `auto-changelog`.
1 change: 0 additions & 1 deletion src/services/pdf-generation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export default class PdfGenerationService {
headless: chromium.headless as boolean,
...pdfGenerationRequest.browserOptions
};

return await puppeteer.launch(options);
}
}

0 comments on commit 1c7abfe

Please sign in to comment.