* 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:
@@ -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
|
||||
: {};
|
||||
@@ -16,5 +16,6 @@ export const trpcHandler = ((endpoint) => (request, context, runtime) => {
|
||||
resHeaders,
|
||||
};
|
||||
},
|
||||
allowMethodOverride: true,
|
||||
});
|
||||
}) satisfies Get<[endpoint: string], UniversalHandler>;
|
||||
|
||||
Reference in New Issue
Block a user