We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ce917 commit e2fc767Copy full SHA for e2fc767
1 file changed
lambdas/supplier-allocator/src/config/env.ts
@@ -12,10 +12,11 @@ export type LetterVariant = z.infer<typeof LetterVariantSchema>;
12
13
const EnvVarsSchema = z.object({
14
PINO_LOG_LEVEL: z.coerce.string().optional(),
15
- VARIANT_MAP: z.string().transform((str, _) => {
16
- const parsed = JSON.parse(str);
17
- return LetterVariantSchema.parse(parsed);
18
- }),
+ VARIANT_MAP: {
+ lv1: { supplierId: "supplier1", specId: "spec1", priority: 10 },
+ lv2: { supplierId: "supplier1", specId: "spec2", priority: 10 },
+ lv3: { supplierId: "supplier2", specId: "spec3", priority: 10 },
19
+ },
20
});
21
22
export type EnvVars = z.infer<typeof EnvVarsSchema>;
0 commit comments