Skip to content

Commit 27a9a03

Browse files
authored
docs: v2.6.0 release (#369)
1 parent d24f024 commit 27a9a03

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/reference/plugins/trpc.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,16 @@ export const trpc = createTRPCNext<AppRouter>({
101101
});
102102
```
103103

104+
:::info
105+
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.
106+
107+
```ts
108+
// if the generated procedures are installed at `/crud` under the router tree
109+
export const trpc = createTRPCNext<AppRouter, 'crud'>({
110+
...
111+
});
112+
:::
113+
104114
### Example
105115

106116
Here's an example with a blogging app:

docs/reference/plugins/zod.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ This plugin is built-in to ZenStack and does not need to be installed separately
157157
| compile | Boolean | If the generated TS code should be compiled to JS | No | true |
158158
| preserveTsFiles | Boolean | If the generated TS files should be preserved (after compiled to JS) | No | true if `compile` is set to false, otherwise false |
159159
| noUncheckedInput | Boolean | Disables schema generation for Prisma's ["Unchecked"](https://github.com/prisma/prisma/discussions/10121#discussioncomment-1621254) input types | No | false |
160+
| mode | String | Controls if the generated schemas should reject, strict, or passthrough unknown fields. Possible values: "strict", "strip", "passthrough" | No | "strict" |
160161
161162
:::info
162163
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.

0 commit comments

Comments
 (0)