Skip to content

Commit c6e6905

Browse files
add changelog
1 parent 7f0bf4a commit c6e6905

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
- Netlify changed their handling of functions, specifically around \_\_dirname.
2+
## Files affected:
3+
- ./functions/gen-opengraph-image/gen-opengraph-image.js

functions/gen-opengraph-image/gen-opengraph-image.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const playwright = require("playwright-aws-lambda");
22
const fs = require("fs");
3-
const script = fs.readFileSync("./image.js", "utf-8");
3+
const script = fs.readFileSync(path.resolve(__dirname, "image.js"), "utf-8");
44

55
exports.handler = async function(event, ctx) {
66
const browser = await playwright.launchChromium();

0 commit comments

Comments
 (0)