- Update prisma.ts to use getPrismaWithD1() with getCloudflareContext() - Update all API routes to use async D1 connection - Add open-next.config.ts for Cloudflare Workers deployment - Add wrangler.jsonc with D1 binding and custom domain routes - Fix TypeScript type errors in API routes and storage - Add @workos-inc/authkit-nextjs dependency - Remove incompatible prisma.config.ts
11 lines
170 B
TypeScript
11 lines
170 B
TypeScript
/// <reference types="@cloudflare/workers-types" />
|
|
|
|
declare global {
|
|
interface CloudflareEnv {
|
|
DB: D1Database;
|
|
ASSETS: Fetcher;
|
|
}
|
|
}
|
|
|
|
export { };
|