- 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
9 lines
197 B
TypeScript
9 lines
197 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
// Required for OpenNext/Cloudflare Workers
|
|
serverExternalPackages: ["@prisma/client"],
|
|
};
|
|
|
|
export default nextConfig;
|