Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
cc0a447
1
Parent(s):
b77d5ce
main.ts
CHANGED
|
@@ -4,7 +4,10 @@ import { Hono } from 'hono';
|
|
| 4 |
|
| 5 |
const app = new Hono();
|
| 6 |
app.get('/hello', (c) => c.text('Hello Node.js!'));
|
| 7 |
-
serve(
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
const browser = await chromium.launch({ headless: true, args: ['--disable-blink-features=AutomationControlled', '--remote-debugging-port=9222'] });
|
| 10 |
const context = await browser.newContext({
|
|
|
|
| 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({
|