diff --git a/docs/reference/plugins/trpc.md b/docs/reference/plugins/trpc.md index e8ee4409..21123db6 100644 --- a/docs/reference/plugins/trpc.md +++ b/docs/reference/plugins/trpc.md @@ -101,6 +101,16 @@ export const trpc = createTRPCNext({ }); ``` +:::info +If your generated trpc procedures are installed at a non-top-level path, you can specify the path with the second type parameter of the `createTRPCNext` or `createTRPCReact` function. + +```ts +// if the generated procedures are installed at `/crud` under the router tree +export const trpc = createTRPCNext({ + ... +}); +::: + ### Example Here's an example with a blogging app: diff --git a/docs/reference/plugins/zod.md b/docs/reference/plugins/zod.md index f081cd21..3f2b6419 100644 --- a/docs/reference/plugins/zod.md +++ b/docs/reference/plugins/zod.md @@ -157,6 +157,7 @@ This plugin is built-in to ZenStack and does not need to be installed separately | compile | Boolean | If the generated TS code should be compiled to JS | No | true | | preserveTsFiles | Boolean | If the generated TS files should be preserved (after compiled to JS) | No | true if `compile` is set to false, otherwise false | | noUncheckedInput | Boolean | Disables schema generation for Prisma's ["Unchecked"](https://github.com/prisma/prisma/discussions/10121#discussioncomment-1621254) input types | No | false | +| mode | String | Controls if the generated schemas should reject, strict, or passthrough unknown fields. Possible values: "strict", "strip", "passthrough" | No | "strict" | :::info When the `generateModels` option is used to specify a list of models to generate, the plugin will also recursively traverse and include all models that are referenced by the specified models. This can result in more code being generated than you expect.