Skip to content

Commit

Permalink
Adding env options for next cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
JS Fillman committed Dec 19, 2023
1 parent de7f4f7 commit 3dbee46
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 6 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
"public_url": "/"
},

"next": {
"domain": "next.kbase.us",
"legacy": "legacy.next.kbase.us",
"public_url": "/"
},

"production": {
"domain": "narrative.kbase.us",
"legacy": "legacy.narrative.kbase.us",
Expand Down
1 change: 1 addition & 0 deletions src/features/layout/TopBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ const Enviroment: FC = () => {
ci: faFlask,
'ci-europa': faFlask,
'narrative-dev': faWrench,
next: faWrench,
unknown: faQuestionCircle,
}[env];
const txt = {

Check failure on line 294 in src/features/layout/TopBar.tsx

View workflow job for this annotation

GitHub Actions / build-push / build-push-image

Property 'next' does not exist on type '{ appdev: string; ci: string; 'ci-europa': string; 'narrative-dev': string; unknown: string; }'.
Expand Down
7 changes: 4 additions & 3 deletions src/features/layout/layoutSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { useEffect } from 'react';
import { useAppDispatch } from '../../common/hooks';

const environments = [
'unknown',
'production',
'ci',
'appdev',
'ci',
'ci-europa',
'narrative-dev',
'next',
'production',
'unknown',
] as const;

interface PageState {
Expand Down

0 comments on commit 3dbee46

Please sign in to comment.