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:
commit
85db6ca4e2
|
|
@ -232,10 +232,10 @@ This method should be invoked _before_ launching Chromium.
|
||||||
|
|
||||||
Alternatively, it's also possible to provision fonts via AWS Lambda Layers.
|
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
|
├── NotoColorEmoji.ttf
|
||||||
└── Roboto.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:
|
Afterwards, you just need to ZIP the directory and upload it as a AWS Lambda Layer:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
zip -9 --filesync --move --recurse-paths .fonts.zip .fonts/
|
zip -9 --filesync --move --recurse-paths fonts.zip fonts/
|
||||||
```
|
```
|
||||||
|
|
||||||
## Graphics
|
## Graphics
|
||||||
|
|
|
||||||
|
|
@ -16,4 +16,4 @@
|
||||||
sam local invoke ExampleFunction
|
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.
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
"name": "ExampleFunction",
|
"name": "ExampleFunction",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "0.1.0",
|
"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",
|
"main": "app.mjs",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sparticuz/chromium": "^118.0.0"
|
"@sparticuz/chromium": "^119.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"puppeteer-core": "^21.4.0"
|
"puppeteer-core": "^21.5.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,6 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Chromium layer for AWS Lambda",
|
"description": "Chromium layer for AWS Lambda",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sparticuz/chromium": "^118.0.0"
|
"@sparticuz/chromium": "^119.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue