Skip to content

Commit e1215d6

Browse files
update console outputs
1 parent 9ea15f0 commit e1215d6

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

collector/processLink/convert/generic.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,13 @@ function validatedHeaders(headers = {}) {
106106
*/
107107
async function getPageContent({ link, captureAs = "text", headers = {} }) {
108108
try {
109-
const runtimeSettings = new RuntimeSettings();
110-
const launchArgs = runtimeSettings.get("browserLaunchArgs");
111-
console.log("launchArgs", launchArgs);
112-
113109
let pageContents = [];
110+
const runtimeSettings = new RuntimeSettings();
114111
const loader = new PuppeteerWebBaseLoader(link, {
115112
launchOptions: {
116113
headless: "new",
117114
ignoreHTTPSErrors: true,
118-
args: launchArgs,
115+
args: runtimeSettings.get("browserLaunchArgs"),
119116
},
120117
gotoOptions: {
121118
waitUntil: "networkidle2",

docker/.env.example

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,9 @@ GID='1000'
363363
# Specify the target languages for when using OCR to parse images and PDFs.
364364
# This is a comma separated list of language codes as a string. Unsupported languages will be ignored.
365365
# Default is English. See https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html for a list of valid language codes.
366-
# TARGET_OCR_LANG=eng,deu,ita,spa,fra,por,rus,nld,tur,hun,pol,ita,spa,fra,por,rus,nld,tur,hun,pol
366+
# TARGET_OCR_LANG=eng,deu,ita,spa,fra,por,rus,nld,tur,hun,pol,ita,spa,fra,por,rus,nld,tur,hun,pol
367+
368+
# Runtime flags for built-in pupeeteer Chromium instance
369+
# This is only required on Linux machines running AnythingLLM via Docker
370+
# and do not want to use the --cap-add=SYS_ADMIN docker argument
371+
# ANYTHINGLLM_CHROMIUM_ARGS="--no-sandbox,--disable-setuid-sandbox"

server/.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,3 +362,8 @@ TTS_PROVIDER="native"
362362
# This is a comma separated list of language codes as a string. Unsupported languages will be ignored.
363363
# Default is English. See https://tesseract-ocr.github.io/tessdoc/Data-Files-in-different-versions.html for a list of valid language codes.
364364
# TARGET_OCR_LANG=eng,deu,ita,spa,fra,por,rus,nld,tur,hun,pol,ita,spa,fra,por,rus,nld,tur,hun,pol
365+
366+
# Runtime flags for built-in pupeeteer Chromium instance
367+
# This is only required on Linux machines running AnythingLLM via Docker
368+
# and do not want to use the --cap-add=SYS_ADMIN docker argument
369+
# ANYTHINGLLM_CHROMIUM_ARGS="--no-sandbox,--disable-setuid-sandbox"

0 commit comments

Comments
 (0)