Stop_smoking_website_ver2/next.config.ts
Avery Felts 14c45eeb24 feat: Add D1 database integration with proper Cloudflare Workers support
- 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
2026-01-25 17:21:36 -07:00

9 lines
197 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
// Required for OpenNext/Cloudflare Workers
serverExternalPackages: ["@prisma/client"],
};
export default nextConfig;