middleware

This configuration option has been deprecated in API version v2.0.0.

Experimental Feature

This configuration entry is related to an Experimental (Optional) feature called pg_trgm Support. Before you start to configure this section, make sure to read the page specific for this feature (accessible here) and this page that explains how to enable Experimental Features.

Type: Path

Versioning History

API Version v1.3.0 - Introduced middleware configuration option.

API Version v2.0.0 - Removed middleware configuration option.

The path where the middleware created by Prisma Util should be written to. To configure this path, add the following line to your exported configuration object:

prisma-util.config.mjs
export default {
    // Other configuration lines
    middleware: "pathToMiddleware.ts"
};

Last updated