mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-07 06:53:54 +05:00
feat/api-prox: add bun and deno dev scripts
This commit is contained in:
parent
9fe2ba4aa7
commit
39215c608c
2 changed files with 9 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
|||
"name": "anixart-serverless-api-proxy",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"deno-dev": "deno serve --unstable-hmr src/index.ts",
|
||||
"bun-dev": "bun run --hot src/index.ts",
|
||||
"vc-dev": "vercel dev",
|
||||
"cf-dev": "wrangler dev",
|
||||
"cf-deploy": "wrangler deploy --minify",
|
||||
|
@ -11,6 +13,9 @@
|
|||
"hono": "^4.9.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/bun": "latest",
|
||||
"@types/node": "latest",
|
||||
"@types/deno": "latest",
|
||||
"typescript": "^5.9.2",
|
||||
"vercel": "^47.0.5",
|
||||
"wrangler": "^4.4.0"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
import { Hono } from "hono";
|
||||
import { logger } from "hono/logger";
|
||||
import { InfoLogger, RouteLogger } from "./utils/logger.js";
|
||||
import { InfoLogger, RouteLogger } from "./utils/logger.ts";
|
||||
import {
|
||||
asciiHTML,
|
||||
getRunningEnvironment,
|
||||
separatorHTML,
|
||||
} from "./utils/info.js";
|
||||
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.js";
|
||||
import { tryCatchAPI } from "./utils/tryCatch.js";
|
||||
} from "./utils/info.ts";
|
||||
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.ts";
|
||||
import { tryCatchAPI } from "./utils/tryCatch.ts";
|
||||
import { hookList, runHooks } from "./hooks/index.ts";
|
||||
|
||||
const app = new Hono({ strict: false });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue