mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-09 07:53:52 +05:00
feat/api-prox: improve deno support
This commit is contained in:
parent
90f285371b
commit
022dc7b284
4 changed files with 43 additions and 1 deletions
13
api-prox/deno.json
Normal file
13
api-prox/deno.json
Normal 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
27
api-prox/deno.lock
generated
Normal 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
3
api-prox/main.ts
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import app from "./src/index.ts";
|
||||||
|
|
||||||
|
Deno.serve(app.fetch);
|
|
@ -3,7 +3,6 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bun-dev": "bun run --hot src/index.ts",
|
"bun-dev": "bun run --hot src/index.ts",
|
||||||
"deno-dev": "deno serve --sloppy-imports --unstable-hmr src/index.ts",
|
|
||||||
"vc-dev": "vercel dev",
|
"vc-dev": "vercel dev",
|
||||||
"vc-deploy": "vercel deploy",
|
"vc-deploy": "vercel deploy",
|
||||||
"cf-dev": "wrangler dev",
|
"cf-dev": "wrangler dev",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue