github debug

This commit is contained in:
Igor Loskutov
2025-09-04 21:43:52 -04:00
parent 50d4bcc0ac
commit 9453ebe356
2 changed files with 9 additions and 2 deletions

View File

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

View File

@@ -10,8 +10,11 @@ import {
} from "@tanstack/react-query"; } from "@tanstack/react-query";
import createFetchClient from "openapi-react-query"; import createFetchClient from "openapi-react-query";
import { assertExistsAndNonEmptyString } from "./utils"; 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 // Create the base openapi-fetch client with a default URL
// The actual URL will be set via middleware in AuthProvider // The actual URL will be set via middleware in AuthProvider