* trpc same data shape as generateText

* read `.env` file
* use zustand for state management
* fix peer dependency warnings by installing zod
* install milvus client
This commit is contained in:
Avraham Sakal
2025-06-30 08:44:49 -04:00
parent e0c5329ff6
commit 4f356153bb
10 changed files with 711 additions and 102 deletions
+10
View File
@@ -0,0 +1,10 @@
export const env: Record<string, string | undefined> =
typeof process?.env !== "undefined"
? process.env
: import.meta && "env" in import.meta
? (
import.meta as ImportMeta & {
env: Record<string, string | undefined>;
}
).env
: {};
+1
View File
@@ -16,5 +16,6 @@ export const trpcHandler = ((endpoint) => (request, context, runtime) => {
resHeaders,
};
},
allowMethodOverride: true,
});
}) satisfies Get<[endpoint: string], UniversalHandler>;