mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-07 06:53:54 +05:00
fix/api-prox: vercel deploy
This commit is contained in:
parent
db735c4566
commit
90f285371b
3 changed files with 7 additions and 7 deletions
|
@ -3,7 +3,7 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"bun-dev": "bun run --hot src/index.ts",
|
||||
"deno-dev": "deno serve --unstable-hmr 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",
|
||||
|
|
|
@ -4,7 +4,7 @@ export type Hook = {
|
|||
hook: (url: URL, data: any, method: "GET" | "POST") => any;
|
||||
};
|
||||
|
||||
import testHook from "./test.ts";
|
||||
import testHook from "./test.js";
|
||||
|
||||
export const hookList: Hook[] = sortHooks([testHook]);
|
||||
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
import { Hono } from "hono";
|
||||
import { logger } from "hono/logger";
|
||||
import { InfoLogger, RouteLogger } from "./utils/logger.ts";
|
||||
import { InfoLogger, RouteLogger } from "./utils/logger.js";
|
||||
import {
|
||||
asciiHTML,
|
||||
getRunningEnvironment,
|
||||
separatorHTML,
|
||||
} 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";
|
||||
} from "./utils/info.js";
|
||||
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.js";
|
||||
import { tryCatchAPI } from "./utils/tryCatch.js";
|
||||
import { hookList, runHooks } from "./hooks/index.js";
|
||||
|
||||
const app = new Hono({ strict: false });
|
||||
app.use(logger(RouteLogger));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue