Use the prismaExtension build extension to use Prisma with Trigger.dev
prismaSchemaFolder
to specify just the directory containing your schema file, instead of the full pathdev
command, only when running the deploy
command.migrate
option:
generator
statements defined in your schema file, you can pass in the clientGenerator
option to specify the prisma-client-js
generator, which will prevent other generators from being generated. Some examples where you may need to do this include when using the prisma-kysely
or prisma-json-types-generator
generators.
typedSql
option:
prismaExtension
will inject the DATABASE_URL
environment variable into the build process. Learn more about setting environment variables for deploying in our Environment Variables guide.These environment variables are only used during the build process and are not embedded in the final container image.