From 9453ebe3567134b16e82489be5a177c0d1617dd4 Mon Sep 17 00:00:00 2001 From: Igor Loskutov Date: Thu, 4 Sep 2025 21:43:52 -0400 Subject: [PATCH] github debug --- .github/workflows/test_next_server.yml | 6 +++++- www/app/lib/apiClient.tsx | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_next_server.yml b/.github/workflows/test_next_server.yml index 538a435b..d7201e03 100644 --- a/.github/workflows/test_next_server.yml +++ b/.github/workflows/test_next_server.yml @@ -43,6 +43,10 @@ jobs: - name: Run tests run: pnpm test + env: + NEXT_PUBLIC_IS_CI: true - name: Build - run: pnpm build \ No newline at end of file + run: pnpm build + env: + NEXT_PUBLIC_IS_CI: true \ No newline at end of file diff --git a/www/app/lib/apiClient.tsx b/www/app/lib/apiClient.tsx index 8ba11c6a..d8d95deb 100644 --- a/www/app/lib/apiClient.tsx +++ b/www/app/lib/apiClient.tsx @@ -10,8 +10,11 @@ import { } from "@tanstack/react-query"; import createFetchClient from "openapi-react-query"; import { assertExistsAndNonEmptyString } from "./utils"; +import { isCI } from "./next"; -const API_URL = assertExistsAndNonEmptyString(process.env.NEXT_PUBLIC_API_URL); +const API_URL = !isCI + ? assertExistsAndNonEmptyString(process.env.NEXT_PUBLIC_API_URL) + : "http://127.0.0.1:1250"; // Create the base openapi-fetch client with a default URL // The actual URL will be set via middleware in AuthProvider