Skip to content

Commit f07414f

Browse files
authored
Merge pull request #170 from openearth/fix/pdf-export
chore: use playwright-chromium instead of playwright
2 parents d6519f5 + 7da47e7 commit f07414f

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

package-lock.json

+9-9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@
103103
"vue-svg-loader": "0.8.0"
104104
},
105105
"optionalDependencies": {
106-
"playwright": "^1.28.1"
106+
"playwright-chromium": "^1.28.1"
107107
}
108108
}

src/server/functions/export-to-pdf-from-markup.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ exports.handler = async event => {
2020
const playwright = require('playwright-aws-lambda');
2121
browser = await playwright.launchChromium();
2222
} else {
23-
const playwright = await import('playwright')
23+
const playwright = await import('playwright-chromium')
2424
browser = await playwright.chromium.launch({ headless: true })
2525
}
2626

0 commit comments

Comments
 (0)