Closed keval6706 closed 6 months ago
Hey, @keval6706, sorry for the silence. I was on vacation. You can specify the app name when creating the schema: https://typesaurus.com/api/schema/#app
schema(
($) => ({
// ...
}),
// Use app-name app at both client and server
{ app: "app-name" },
);
schema(
($) => ({
// ...
}),
{
// Use server-name app at server
server: { app: "server-name" },
// Use client-name app at client
client: { app: "client-name" },
},
);
Please let me know if it helps or if you have further questions.
databaseId is second param to getFirestore, without this it always uses (default) database https://github.com/kossnocorp/typesaurus/blob/7976747ddfa726350d751e7b31894d31f76f3646/src/adapter/admin/firebase.mjs#L15