- Drop tsconfig.node.json: composite + noEmit conflict, and the vite.config.ts doesn't need its own project / node types. - Inline vite.config.ts in the main tsconfig include list. - Switch web build from `tsc -b` to `tsc --noEmit` since there are no project references anymore. - Make b64urlDecode return Uint8Array<ArrayBuffer> so its output is accepted by crypto.subtle.verify under stricter lib types. - Cast the Pages EventContext to ExecutionContext when forwarding to Hono; props is unused at runtime. https://claude.ai/code/session_01TPBqgcSJMppgrpiq7fLywL
8 lines
245 B
TypeScript
8 lines
245 B
TypeScript
import { createApp } from '@leetete/api';
|
|
import type { AppEnv } from '@leetete/api/env';
|
|
|
|
const app = createApp();
|
|
|
|
export const onRequest: PagesFunction<AppEnv> = (ctx) =>
|
|
app.fetch(ctx.request, ctx.env, ctx as unknown as ExecutionContext);
|