TRPC functions vercel deploy

https://github.com/c-ehrlich/you-dont-need-callers/blob/main/src/server/api/example1-one-file/product.ts im doing this why does it seem like prisma does not work at all in the functions when i deploy to vercel. locally it works but when i deploy to vercel im not seeing console.log. it runs the function it just doesnt use prisma right
import { PrismaClient } from "@prisma/client";
import { env } from "@/env.mjs";

const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
};

export const prisma =
globalForPrisma.prisma ??
new PrismaClient({
log:
env.NODE_ENV === "development" ? ["query", "error", "warn"] : ["error"],
});

export type Prisma = typeof prisma;

if (env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
import { PrismaClient } from "@prisma/client";
import { env } from "@/env.mjs";

const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
};

export const prisma =
globalForPrisma.prisma ??
new PrismaClient({
log:
env.NODE_ENV === "development" ? ["query", "error", "warn"] : ["error"],
});

export type Prisma = typeof prisma;

if (env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;
something to do with this?
GitHub
you-dont-need-callers/src/server/api/example1-one-file/product.ts a...
Contribute to c-ehrlich/you-dont-need-callers development by creating an account on GitHub.
1 Reply
Matt
Matt16mo ago
i didnt await the function..... works locally but does not work deployed
Want results from more Discord servers?
Add your server