chrishoermann / zod-prisma-types

Generator creates zod types for your prisma models with advanced validation
Other
578 stars 43 forks source link

Infinite Execution in Vercel Installation Command with Zod Generator [BUG] #217

Open julio-ccatb opened 7 months ago

julio-ccatb commented 7 months ago

When deploying T3 app to Vercel using the Zod generator, the install command runs indefinitely, most likely because Vercel cannot find the npx zod-prisma-types command as a valid command. However, it doesn't crash for some reason until the default Vercel timeout occurs and closes it.

Screenshots image

To reproduce

generator zod {
  provider = "npx zod-prisma-types"
} 

Fix

generator zod {
  provider = "zod-prisma-types"
} 

Package versions (please complete the following information):

Note

While it's unclear if this behavior stems from a misuse on my end, for the benefit of others encountering this issue, there should ideally be a flag or documentation update within the usage section to address this.

--

CyanoFresh commented 7 months ago

probably related https://github.com/chrishoermann/zod-prisma-types/issues/170