Skip to content

Commit

Permalink
changes index js
Browse files Browse the repository at this point in the history
  • Loading branch information
Gemma committed Dec 21, 2023
1 parent 2b1bf1d commit a588cd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ COPY yarn.lock .
COPY public ./public
COPY src ./src


RUN yarn install --production


2 changes: 1 addition & 1 deletion frontend/src/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"API_URL": "https://beacon-network-backend-test.ega-archive.org/beacon-network/v2.0.0",
"REDIRECT_URL": "https://beacon-network-demo.ega-archive.org/",
"REDIRECT_URL": "http://localhost:3000/",
"KEYCLOAK_URL": "https://beacon-network-demo2.ega-archive.org"
}
4 changes: 2 additions & 2 deletions frontend/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import configData from './config.json'
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom';
import { AuthProviderWrapper } from './components/context/AuthContext';
import { AuthProvider } from 'oidc-react';



const root = ReactDOM.createRoot(document.getElementById('root'));

const oidcConfig = {
Expand All @@ -25,7 +25,7 @@ const oidcConfig = {
automaticSilentRenew: true,
redirectUri:
process.env.NODE_ENV === 'development'
&& 'https://beacon-network-demo.ega-archive.org/',
&& configData.REDIRECT_URL,
scope: 'openid profile email ga4gh_passport_v1 offline_access',
revokeAccessTokenOnSignout: true
};
Expand Down

0 comments on commit a588cd8

Please sign in to comment.