v2.3.1
- add default expose strategy option (#37) (2ebddee)
- Fix PrismaAdapter for prisma 4 (#39) (#40) (16257be)
Breaking change
The NextCrud
function is now asynchronous, which requires to change the way you are creating the handler.
Old version:
const handler = NextCrud({
adapter: new PrismaAdapter({
prismaClient: myPrismaClientInstance,
}),
})
export default handler
New version:
const handler = async (req, res) => {
const nextCrudHandler = await NextCrud({
adapter: new PrismaAdapter({
prismaClient: myPrismaClientInstance,
}),
})
return nextCrudHandler(req, res)
}
export default handler