T1ckbase commited on
Commit
25c507d
·
1 Parent(s): cc0a447
Files changed (1) hide show
  1. main.ts +12 -7
main.ts CHANGED
@@ -2,14 +2,19 @@ import { chromium, devices } from 'playwright';
2
  import { serve } from '@hono/node-server';
3
  import { Hono } from 'hono';
4
 
5
- const app = new Hono();
6
- app.get('/hello', (c) => c.text('Hello Node.js!'));
7
- serve({
8
- port: 9222,
9
- fetch: app.fetch,
10
- });
 
 
11
 
12
- const browser = await chromium.launch({ headless: true, args: ['--disable-blink-features=AutomationControlled', '--remote-debugging-port=9222'] });
 
 
 
13
  const context = await browser.newContext({
14
  ...devices['Desktop Chrome'],
15
  colorScheme: 'dark',
 
2
  import { serve } from '@hono/node-server';
3
  import { Hono } from 'hono';
4
 
5
+ // https://t1ckbase-remote-playwright-test.hf.space
6
+
7
+ // const app = new Hono();
8
+ // app.get('/hello', (c) => c.text('Hello Node.js!'));
9
+ // serve({
10
+ // port: 9222,
11
+ // fetch: app.fetch,
12
+ // });
13
 
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'],
20
  colorScheme: 'dark',