https://github.com/mahdadghasemian/node20-chromium
https://github.com/mahdadghasemian/node20-chromium
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mahdadghasemian/node20-chromium
- Owner: MahdadGhasemian
- Created: 2024-07-13T06:44:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-07-13T06:52:59.000Z (over 1 year ago)
- Last Synced: 2025-02-04T16:14:46.621Z (9 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To use puppeteer
# Env
You can use the `CHROMIUM_PATH` env in your app for the puppeter path.
## Env Example:
```
options = {
executablePath: process.env.CHROMIUM_PATH,
headless: 'new',
args: [
'--no-sandbox',
'--disable-setuid-sandbox',
'--disable-web-security',
'--font-render-hinting=none',
'--allow-file-access-from-files',
'--enable-local-file-accesses',
],
ignoreDefaultArgs: ['--disable-extensions']
};
```