diff --git a/README.md b/README.md index af7245f..b8035a2 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/examples/aws-sam/README.md b/examples/aws-sam/README.md index fd77149..a004b5f 100644 --- a/examples/aws-sam/README.md +++ b/examples/aws-sam/README.md @@ -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. diff --git a/examples/aws-sam/functions/exampleFunction/package.json b/examples/aws-sam/functions/exampleFunction/package.json index 8157b06..3e8b18d 100644 --- a/examples/aws-sam/functions/exampleFunction/package.json +++ b/examples/aws-sam/functions/exampleFunction/package.json @@ -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" } } diff --git a/examples/aws-sam/layers/chromium/package.json b/examples/aws-sam/layers/chromium/package.json index 942a69e..2923fde 100644 --- a/examples/aws-sam/layers/chromium/package.json +++ b/examples/aws-sam/layers/chromium/package.json @@ -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" } }