debug
This commit is contained in:
@@ -7,7 +7,7 @@ metadata:
|
||||
labels:
|
||||
app: stream-ui
|
||||
data:
|
||||
STREAM_API_GRPC_ADDR: "stream.api-svc"
|
||||
STREAM_API_GRPC_ADDR: "stream-api-svc"
|
||||
GOOGLE_AUTH_FINALIZE_PATH: "/auth/google/finalize"
|
||||
STREAM_INTERNAL_AUTH_MARKER: "stream_maker_123xxx"
|
||||
STREAM_UI_JWT_SECRET: "xxx_stream_maker_123_xxx"
|
||||
|
||||
@@ -35,7 +35,7 @@ export function registerRpcRoutes(app: Hono) {
|
||||
const JSONProcessor: JsonTransformer = {
|
||||
parse: (v) => clientJSON.parse(v, () => getContext()?.req.header()),
|
||||
stringify: (v) =>
|
||||
clientJSON.stringify(v, (headers) => {
|
||||
clientJSON.stringify(v, (headers: Record<string, string>) => {
|
||||
const ctx = getContext();
|
||||
if (ctx) {
|
||||
Object.entries(headers).forEach(([k, v]) => {
|
||||
|
||||
@@ -152,13 +152,14 @@ export function parse(d: string, getHeader?: () => Record<string, string>): any
|
||||
const parsed = JSON.parse(utf8Decode(opened));
|
||||
return superjson.deserialize(parsed);
|
||||
}
|
||||
export default import.meta.env.DEV ? {
|
||||
export default {
|
||||
parse: (v: string, fn: any) => JSON.parse(v),
|
||||
stringify: (v: any, fn: any) => JSON.stringify(v),
|
||||
} : {
|
||||
stringify,
|
||||
parse,
|
||||
}
|
||||
// : {
|
||||
// stringify,
|
||||
// parse,
|
||||
// }
|
||||
// export function createServerInputDecryptor(opts?: {
|
||||
// getSecretKeyByKid: (kid: string) => Uint8Array | null;
|
||||
// }): Partial<JsonTransformer> {
|
||||
|
||||
Reference in New Issue
Block a user