fix: docker should install chromium and puppeteer should be no sandbox

This commit is contained in:
atilgner
2023-07-07 12:39:30 -07:00
parent 4dd43fb2c4
commit 90d7f4472d
2 changed files with 11 additions and 1 deletions
@@ -73,7 +73,12 @@ class Puppeteer_DocumentLoaders implements INode {
const puppeteerLoader = async (url: string): Promise<any> => {
let docs = []
const loader = new PuppeteerWebBaseLoader(url)
const loader = new PuppeteerWebBaseLoader(url, {
launchOptions: {
args: ['--no-sandbox'],
headless: 'new'
}
})
if (textSplitter) {
docs = await loader.loadAndSplit(textSplitter)
} else {