T1ckbase commited on
Commit
5dab452
·
1 Parent(s): 25c507d
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. main.ts +3 -2
Dockerfile CHANGED
@@ -16,7 +16,7 @@ RUN pnpm install --frozen-lockfile
16
 
17
  COPY . .
18
 
19
- RUN pnpm exec playwright install --with-deps chromium
20
 
21
  EXPOSE 9222
22
 
 
16
 
17
  COPY . .
18
 
19
+ RUN pnpm exec playwright install --with-deps chrome
20
 
21
  EXPOSE 9222
22
 
main.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { chromium, devices } from 'playwright';
2
- import { serve } from '@hono/node-server';
3
- import { Hono } from 'hono';
4
 
5
  // https://t1ckbase-remote-playwright-test.hf.space
6
 
@@ -14,6 +14,7 @@ import { Hono } from 'hono';
14
  const browser = await chromium.launch({
15
  headless: true,
16
  args: ['--disable-blink-features=AutomationControlled', '--remote-debugging-address=0.0.0.0', '--remote-debugging-port=9222'],
 
17
  });
18
  const context = await browser.newContext({
19
  ...devices['Desktop Chrome'],
 
1
  import { chromium, devices } from 'playwright';
2
+ // import { serve } from '@hono/node-server';
3
+ // import { Hono } from 'hono';
4
 
5
  // https://t1ckbase-remote-playwright-test.hf.space
6
 
 
14
  const browser = await chromium.launch({
15
  headless: true,
16
  args: ['--disable-blink-features=AutomationControlled', '--remote-debugging-address=0.0.0.0', '--remote-debugging-port=9222'],
17
+ channel: 'chrome',
18
  });
19
  const context = await browser.newContext({
20
  ...devices['Desktop Chrome'],