Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
25c507d
1
Parent(s):
cc0a447
test
Browse files
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 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
const browser = await chromium.launch({
|
|
|
|
|
|
|
|
|
|
| 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',
|