feat/api-prox: improve deno support

This commit is contained in:
Kentai Radiquum 2025-09-07 15:54:13 +05:00
parent 90f285371b
commit 022dc7b284
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
4 changed files with 43 additions and 1 deletions

13
api-prox/deno.json Normal file
View file

@ -0,0 +1,13 @@
{
"imports": {
"hono": "jsr:@hono/hono@^4.9.6"
},
"tasks": {
"deno-start": "deno run --sloppy-imports --allow-net main.ts",
"deno-dev": "deno run --sloppy-imports --unstable-hmr --allow-net main.ts"
},
"compilerOptions": {
"jsx": "precompile",
"jsxImportSource": "hono/jsx"
}
}

27
api-prox/deno.lock generated Normal file
View file

@ -0,0 +1,27 @@
{
"version": "5",
"specifiers": {
"jsr:@hono/hono@^4.9.6": "4.9.6"
},
"jsr": {
"@hono/hono@4.9.6": {
"integrity": "b85abb0013d167a290b1808d1d4d542dee269df31d4f47122023259fdd7e184b"
}
},
"workspace": {
"dependencies": [
"jsr:@hono/hono@^4.9.6"
],
"packageJson": {
"dependencies": [
"npm:@types/bun@latest",
"npm:@types/deno@latest",
"npm:@types/node@latest",
"npm:hono@^4.9.6",
"npm:typescript@^5.9.2",
"npm:vercel@^47.0.5",
"npm:wrangler@^4.4.0"
]
}
}
}

3
api-prox/main.ts Normal file
View file

@ -0,0 +1,3 @@
import app from "./src/index.ts";
Deno.serve(app.fetch);

View file

@ -3,7 +3,6 @@
"type": "module",
"scripts": {
"bun-dev": "bun run --hot src/index.ts",
"deno-dev": "deno serve --sloppy-imports --unstable-hmr src/index.ts",
"vc-dev": "vercel dev",
"vc-deploy": "vercel deploy",
"cf-dev": "wrangler dev",