Skip to content

Commit

Permalink
Riktig url til draft i gcp
Browse files Browse the repository at this point in the history
  • Loading branch information
LudvigHz committed Jun 11, 2024
1 parent a09b1b5 commit 62bdbf8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
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
VITE_DRAFT_URL_WS=wss://modiapersonoversikt-draft.intern.dev.nav.no
1 change: 1 addition & 0 deletions src/app/personside/dialogpanel/use-draft.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ interface WsConfirmation {
const okCloseCodes = Object.values(WebSocketImpl.Codes);

const getWsUrl = () => {
if (import.meta.env.VITE_DRAFT_URL_WS) return import.meta.env.VITE_DRAFT_URL_WS as string;
if (import.meta.env.VITE_DRAFT_URL) return (import.meta.env.VITE_DRAFT_URL as string).replace('http', 'ws');
const env = getEnvFromHost();
switch (env) {
Expand Down

0 comments on commit 62bdbf8

Please sign in to comment.