From 6cbe694530c030acd2ccb6f9d65d240bdd5c9139 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Tue, 15 Aug 2023 08:34:46 -0700 Subject: [PATCH] Update fifty-suits-shout.md --- .changeset/fifty-suits-shout.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.changeset/fifty-suits-shout.md b/.changeset/fifty-suits-shout.md index f26d17bdc5..734283b030 100644 --- a/.changeset/fifty-suits-shout.md +++ b/.changeset/fifty-suits-shout.md @@ -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", + }); +```