Published onAugust 24, 2025The Hidden Danger of Importing Prisma Enums in Client-Side Codeprismatypescriptbundlingbuild-errorsfrontendWhy importing Prisma enums directly in client-side code breaks production builds and the constants pattern that solves it.