From 41c92b8aebbd90b3964cfab97762b1635f304953 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 12:02:57 -0400 Subject: [PATCH] ci randomness --- .github/workflows/test_next_server.yml | 6 +----- www/app/lib/next.ts | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_next_server.yml b/.github/workflows/test_next_server.yml index 98d2a71f..d6671bf6 100644 --- a/.github/workflows/test_next_server.yml +++ b/.github/workflows/test_next_server.yml @@ -43,10 +43,6 @@ jobs: - name: Run tests run: pnpm test - env: - IS_CI: "true" - name: Build - run: pnpm build - env: - IS_CI: "true" \ No newline at end of file + run: pnpm build \ No newline at end of file diff --git a/www/app/lib/next.ts b/www/app/lib/next.ts index 3409642c..eb8d17ab 100644 --- a/www/app/lib/next.ts +++ b/www/app/lib/next.ts @@ -1,3 +1,3 @@ // next.js tries to run all the lib code during build phase; we don't always want it when e.g. we have connections initialized we don't want to have export const isBuildPhase = process.env.NEXT_PHASE?.includes("build"); -export const isCI = process.env.IS_CI === "true"; +export const isCI = process.env.CI === "true" || process.env.IS_CI === "true";