Skip to content

Commit

Permalink
Update fifty-suits-shout.md
Browse files Browse the repository at this point in the history
  • Loading branch information
holic authored Aug 15, 2023
1 parent 77b1cbc commit 6cbe694
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .changeset/fifty-suits-shout.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,21 @@
"@latticexyz/store-indexer": major
---

Adds a [Fastify](https://fastify.dev/) server in front of tRPC and puts tRPC endpoints under `/trpc` to make way for other top-level endpoints (e.g. [tRPC panel](https://github.com/iway1/trpc-panel) or other API frontends like REST or gRPC)
Adds a [Fastify](https://fastify.dev/) server in front of tRPC and puts tRPC endpoints under `/trpc` to make way for other top-level endpoints (e.g. [tRPC panel](https://github.com/iway1/trpc-panel) or other API frontends like REST or gRPC).

If you're using `@latticexyz/store-sync` packages with an indexer (either `createIndexerClient` or `indexerUrl` argument of `syncToRecs`), then you'll want to update your indexer URL:

```diff
createIndexerClient({
- url: "https://indexer.dev.linfra.xyz",
+ url: "https://indexer.dev.linfra.xyz/trpc",
});
```

```diff
syncToRecs({
...
- indexerUrl: "https://indexer.dev.linfra.xyz",
+ indexerUrl: "https://indexer.dev.linfra.xyz/trpc",
});
```

0 comments on commit 6cbe694

Please sign in to comment.