feat: use stealth plugin

This commit is contained in:
amhsirak
2024-11-22 23:04:03 +05:30
parent e3b72d192f
commit 6375f1e4f5
5 changed files with 15 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import { uuid } from "uuidv4";
import { chromium } from "playwright";
import { chromium } from 'playwright-extra';
import stealthPlugin from 'puppeteer-extra-plugin-stealth';
import { io, Socket } from "socket.io-client";
import { createRemoteBrowserForRun, destroyRemoteBrowser } from '../../browser-management/controller';
import logger from '../../logger';
@@ -10,6 +11,7 @@ import Run from "../../models/Run";
import { getDecryptedProxyConfig } from "../../routes/proxy";
import { BinaryOutputService } from "../../storage/mino";
import { capture } from "../../utils/analytics";
chromium.use(stealthPlugin());
async function createWorkflowAndStoreMetadata(id: string, userId: string) {
try {