Skip to content

Commit e1d5243

Browse files
committed
Use the new correct URL for Hasura when running integration tests
1 parent 0d14333 commit e1d5243

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/run-integration-tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,6 @@ jobs:
2929
run: yarn ws:db build
3030

3131
- name: Run integration tests
32+
env:
33+
HASURA_URL: 'https://e2e.local.jore.hsldev.com/api/graphql/v1/graphql'
3234
run: yarn test:integration

ui/src/graphql/client.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,9 @@ function getGraphqlUrl(
9696
const path = '/api/graphql/v1/graphql';
9797

9898
if (isTesting) {
99-
return `http://127.0.0.1:3300${path}`;
99+
// In CI or when HASURA_URL is set, use it directly
100+
// Otherwise default to UI proxy for local development
101+
return process.env.HASURA_URL ?? `http://127.0.0.1:3300${path}`;
100102
}
101103

102104
if (isWebsocket) {

0 commit comments

Comments
 (0)