Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions docs/reference/plugins/trpc.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,16 @@ export const trpc = createTRPCNext<AppRouter>({
});
```

:::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<AppRouter, 'crud'>({
...
});
:::

### Example

Here's an example with a blogging app:
Expand Down
1 change: 1 addition & 0 deletions docs/reference/plugins/zod.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down