The file name are correct and matching the case. working on local machine but giving error in vercel.
Module not found: Can't resolve './lib/db'
./lib/db.ts
import { PrismaClient } from "/client/" declare global { var prisma: PrismaClient | undefined } const prisma = global.prisma || new PrismaClient({ log: ["info"] }); if (process.env.NODE_ENV !== "production") global.prisma = prisma;
/home/page.tsx
import prisma from './lib/db'
const newUser = await prisma.user.create({ data: { userId: id as string, firstName: first_name, lastName: last_name, email: email_address, },
Deployment URL or Custom Domain: deployment urlEnvironment (local, preview, production): productionProject Framework: nextjsBuild Settings: Framework Preset: yes Build Command (if not default): Output Directory (if not default): Install Command (if not default):Node/Runtime Version:Package Manager:Relevant Packages:
) from the file route.ts under api (highlighted in yellow), giving the error.
