Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ VITE_KEYCLOAK_URL = "https://identity-test.diamond.ac.uk"
VITE_KEYCLOAK_REALM = "dls"
VITE_KEYCLOAK_CLIENT_ID = "ImagingHubDev"
VITE_KEYCLOAK_SCOPE = "openid profile posix-uid email"
VITE_GRAPHQL_HTTP_ENDPOINT = "https://graph-nightly.diamond.ac.uk/graphql"
VITE_GRAPHQL_WS_ENDPOINT = "wss://graph-nightly.diamond.ac.uk/graphql/ws"
```

#### Install dependencies and generate code from GraphQL schema
Expand Down
2 changes: 2 additions & 0 deletions frontend/.env.production
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ VITE_KEYCLOAK_URL = "https://identity.diamond.ac.uk"
VITE_KEYCLOAK_REALM = "dls"
VITE_KEYCLOAK_CLIENT_ID = "ImagingHub"
VITE_KEYCLOAK_SCOPE = "openid profile posix-uid email"
VITE_GRAPHQL_HTTP_ENDPOINT = "https://graph.diamond.ac.uk/graphql"
VITE_GRAPHQL_WS_ENDPOINT = "wss://graph.diamond.ac.uk/graphql/ws"
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "imaginghub",
"private": true,
"version": "0.8.0",
"version": "0.8.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
10 changes: 8 additions & 2 deletions frontend/relay.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@
"projects": {
"tomography": {
"language": "typescript",
"schema": "src/workflows.graphql",
"schema": "src/supergraph.graphql",
"eagerEsModules": true
},
"unified": {
"language": "typescript",
"schema": "src/supergraph.graphql",
"eagerEsModules": true
}
},
"sources": {
"tomography/src": "tomography"
"tomography/src": "tomography",
"unified/src": "unified"
},
"excludes": ["**/node_modules/**", "**/__mocks__/**", "**/__generated__/**"]
}
4 changes: 2 additions & 2 deletions frontend/src/RelayEnvironment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
import keycloak from "./keycloak";
import { createClient } from "graphql-ws";

const HTTP_ENDPOINT = "https://workflows.diamond.ac.uk/graphql";
const WS_ENDPOINT = "wss://workflows.diamond.ac.uk/graphql/ws";
const HTTP_ENDPOINT = import.meta.env.VITE_GRAPHQL_HTTP_ENDPOINT;
const WS_ENDPOINT = import.meta.env.VITE_GRAPHQL_WS_ENDPOINT;

const fetchFn: FetchFunction = async (request, variables) => {
// Refresh token if needed (minValidity in seconds)
Expand Down
Loading
Loading