Skip to content

Commit

Permalink
chore(workers): Remove unused configuration options
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Mar 31, 2024
1 parent 23bc975 commit e4610d4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions apps/workers/crawlerWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ async function launchBrowser() {
logger.info(`Launching a new browser instance`);
browser = await puppeteer.launch({
headless: serverConfig.crawler.headlessBrowser,
executablePath: serverConfig.crawler.browserExecutablePath,
userDataDir: serverConfig.crawler.browserUserDataDir,
});
}
} catch (e) {
Expand Down
4 changes: 0 additions & 4 deletions packages/shared/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ const allEnv = z.object({
REDIS_PORT: z.coerce.number().default(6379),
REDIS_DB_IDX: z.coerce.number().optional(),
CRAWLER_HEADLESS_BROWSER: stringBool("true"),
BROWSER_EXECUTABLE_PATH: z.string().optional(), // If not set, the system's browser will be used
BROWSER_USER_DATA_DIR: z.string().optional(),
BROWSER_WEB_URL: z.string().url().optional(),
MEILI_ADDR: z.string().optional(),
MEILI_MASTER_KEY: z.string().default(""),
Expand Down Expand Up @@ -52,8 +50,6 @@ const serverConfigSchema = allEnv.transform((val) => {
},
crawler: {
headlessBrowser: val.CRAWLER_HEADLESS_BROWSER,
browserExecutablePath: val.BROWSER_EXECUTABLE_PATH,
browserUserDataDir: val.BROWSER_USER_DATA_DIR,
browserWebUrl: val.BROWSER_WEB_URL,
},
meilisearch: val.MEILI_ADDR
Expand Down

0 comments on commit e4610d4

Please sign in to comment.