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

@@ -93,6 +93,15 @@ jobs:
echo "short_sha=$SHORT_SHA" echo "short_sha=$SHORT_SHA"
} >> "$GITHUB_OUTPUT" } >> "$GITHUB_OUTPUT"
echo "--- DEBUG ---"
echo "TARGET: $TARGET"
echo "IMAGE_TAG: $IMAGE_TAG"
echo "ENV_FILE: $ENV_FILE"
echo "PRIMARY_HOST: $PRIMARY_HOST"
echo "TRAEFIK_RULE: $TRAEFIK_RULE"
echo "PROJECT_NAME: $PRJ-$TARGET"
echo "--- END DEBUG ---"
# ⏳ Wait for Upstream Packages/Images if Tagged # ⏳ Wait for Upstream Packages/Images if Tagged
if [[ "${{ github.ref_type }}" == "tag" ]]; then if [[ "${{ github.ref_type }}" == "tag" ]]; then
echo "🔎 Checking for @mintel dependencies in package.json..." echo "🔎 Checking for @mintel dependencies in package.json..."

View File

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

2
next-env.d.ts vendored
View File

@@ -1,6 +1,6 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts"; import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.