Merge branch 'master' into chromium/121

* master:
  Update font layer description on README for v119.0.2+
  Update SAM example to v119; fix readme link
This commit is contained in:
Sparticuz 2024-01-29 12:49:04 -05:00
commit 85db6ca4e2
4 changed files with 8 additions and 8 deletions

View File

@ -232,10 +232,10 @@ 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
```
@ -243,7 +243,7 @@ Simply create a directory named `.fonts` and place any font faces you want there
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

View File

@ -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.

View File

@ -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"
}
}

View File

@ -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"
}
}