Skip to content

Commit

Permalink
Merge branch 'master' into chromium/121
Browse files Browse the repository at this point in the history
* master:
  Update font layer description on README for v119.0.2+
  Update SAM example to v119; fix readme link
  • Loading branch information
Sparticuz committed Jan 29, 2024
2 parents 0f93a89 + 30743fd commit 85db6ca
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,18 +232,18 @@ This method should be invoked _before_ launching Chromium.

Alternatively, it's also possible to provision fonts via AWS Lambda Layers.

Simply create a directory named `.fonts` and place any font faces you want there:
Simply create a directory named `fonts` and place any font faces you want there:

```
.fonts
fonts
├── NotoColorEmoji.ttf
└── Roboto.ttf
```

Afterwards, you just need to ZIP the directory and upload it as a AWS Lambda Layer:

```shell
zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/
zip -9 --filesync --move --recurse-paths fonts.zip fonts/
```

## Graphics
Expand Down
2 changes: 1 addition & 1 deletion examples/aws-sam/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
sam local invoke ExampleFunction
```

This example connects to https://www.example.com and outputs the page's title as the function result. See the source code in [`app.mjs`](app.mjs) for more details.
This example connects to https://www.example.com and outputs the page's title as the function result. See the source code in [`app.mjs`](functions/exampleFunction/app.mjs) for more details.
6 changes: 3 additions & 3 deletions examples/aws-sam/functions/exampleFunction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "ExampleFunction",
"private": true,
"version": "0.1.0",
"description": "AWS Lambda Function that loads Chromium",
"description": "AWS Lambda Function that loads Chromium. Refer to https://github.com/Sparticuz/chromium#install for compatible versions.",
"main": "app.mjs",
"devDependencies": {
"@sparticuz/chromium": "^118.0.0"
"@sparticuz/chromium": "^119.0.0"
},
"dependencies": {
"puppeteer-core": "^21.4.0"
"puppeteer-core": "^21.5.1"
}
}
2 changes: 1 addition & 1 deletion examples/aws-sam/layers/chromium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"version": "1.0.0",
"description": "Chromium layer for AWS Lambda",
"dependencies": {
"@sparticuz/chromium": "^118.0.0"
"@sparticuz/chromium": "^119.0.0"
}
}

0 comments on commit 85db6ca

Please sign in to comment.