serverless-esbuild-prisma
v0.0.3
Published
Serverless plugin that embeds schema.prisma to serverless functions .zip files
Readme
Serverless (Esbuild) Prisma
This will help you embed Prisma into your Serverless project. It will copy for example schema.prisma and libquery_engine* to the Serverless function .zip files.
This might also work without esbuild.
Big thanks to @danieluhm2004 for the inspiration.
How to use?
First, install the package by entering the following command.
npm install serverless-esbuild-prisma --save-devAdd the corresponding plugin under the Serverless config file as shown below.
plugins:
- serverless-esbuild
- serverless-esbuild-prismaThis plugin also has some additional configs:
custom:
prisma:
prismaPath: ../../ # Passing this param, plugin will change the directory to find the dir prisma containing the prisma/prisma.schema
ignoreFunctions: # Passing this param, we tell plugin which functions should be ignored and processed as non prisma based functions.
- someNonPrismaFunction