fix: resolve excessive ts type instantiation deep recursion in env variables causing QA failure
Some checks failed
🚀 Build & Deploy / 🔍 Prepare (push) Successful in 4s
🚀 Build & Deploy / 🧪 QA (push) Failing after 33s
🚀 Build & Deploy / 🚀 Deploy (push) Has been cancelled
🚀 Build & Deploy / 🧪 Post-Deploy Verification (push) Has been cancelled
🚀 Build & Deploy / 🔔 Notify (push) Has been cancelled
🚀 Build & Deploy / 🏗️ Build (push) Has been cancelled

This commit is contained in:
2026-05-05 10:27:24 +02:00
parent df37f23270
commit 08e16ce754
3 changed files with 14 additions and 3 deletions

View File

@@ -24,14 +24,16 @@ const envExtension = {
/**
* Full schema including Mintel base and refinements
*/
// @ts-ignore
export const envSchema = withMintelRefinements(
z.object(mintelEnvSchema).extend(envExtension),
(z as any).object(mintelEnvSchema).extend(envExtension) as any,
);
/**
* Validated environment object.
*/
export const env = validateMintelEnv(envExtension);
// @ts-ignore
export const env = validateMintelEnv(envExtension) as any;
/**
* For legacy compatibility with existing code.