Skip to content

Commit

Permalink
Oppdtater proxy url for draft
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Jun 7, 2024
1 parent f794049 commit 4eba136
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .env.dev-gcp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ SKIP_PREFLIGHT_CHECK=true
VITE_AMPLITUDE_API_KEY=4b7349a378cfc18faf21e1fe6bea0cf2
VITE_AMPLITUDE_API_KEY_DEV=716ce898b7143ffd7ff3e52dfe69bae7

VITE_DRAFT_URL=modiapersonoversikt-draft.intern.dev.nav.no/modiapersonoversikt-draft
VITE_DRAFT_URL=modiapersonoversikt-draft.intern.dev.nav.no
2 changes: 1 addition & 1 deletion proxy-config-q2.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scope": "api://dev-gcp.personoversikt.modiapersonoversikt-skrivestotte/.default"
},
"modia-draft": {
"url": "http://modiapersonoversikt-draft.personoversikt.svc.cluster.local/modiapersonoversikt-draft",
"url": "http://modiapersonoversikt-draft.personoversikt.svc.cluster.local",
"scope": "api://dev-gcp.personoversikt.modiapersonoversikt-draft/.default"
},
"modia-innstillinger": {
Expand Down
2 changes: 1 addition & 1 deletion src/mock/mock-websocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class MockWebsocket implements WebSocketIsh {
static wsOriginal: WebSocket = (window as any).WebSocket;
static setup() {
(window as any).WebSocket = (url: string) => {
if (url.includes('/modiapersonoversikt-draft/api/draft/ws')) {
if (url.includes('/api/draft/ws')) {
return new MockWebsocket(url);
} else if (url.includes('veilederflatehendelser')) {
return new VoidWebSocket();
Expand Down

0 comments on commit 4eba136

Please sign in to comment.