This repository has been archived on 2026-06-09. You can view files and clone it, but cannot push or open issues or pull requests.
wedding-app/apps/web/functions/api/[[path]].ts
Claude 89b1221706
fix: web build typescript errors
- 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
2026-05-03 23:56:44 +00:00

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);