ci randomness

This commit is contained in:
Igor Loskutov
2025-09-04 12:02:57 -04:00
parent 3170605d9a
commit 41c92b8aeb
2 changed files with 2 additions and 6 deletions

View File

@@ -43,10 +43,6 @@ jobs:
- name: Run tests - name: Run tests
run: pnpm test run: pnpm test
env:
IS_CI: "true"
- name: Build - name: Build
run: pnpm build run: pnpm build
env:
IS_CI: "true"

View File

@@ -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 // 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 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";