Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit ed137ff

Browse files
committed
Bytter til intern ingress i dev
1 parent 2a1273e commit ed137ff

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

nais/dev-gcp/nais.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
min: 2
2424
max: 4
2525
ingresses:
26-
- "https://person.dev.nav.no/tms-min-side-varslinger"
26+
- "https://www.intern.dev.nav.no/tms-min-side-varslinger"
2727
resources:
2828
limits:
2929
cpu: "3"

src/api/urls.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const isProduction = window.location.href.includes("www.intern.nav.no") || window.location.href.includes("www.nav.no");
2-
const isDevelopment = window.location.href.includes("www.dev.nav.no");
1+
const isProduction = window.location.href.includes("www.nav.no");
2+
const isDevelopment = window.location.href.includes("www.intern.dev.nav.no");
33

44
export const getEnvironment = () => {
55
if (isDevelopment) {
@@ -21,13 +21,11 @@ const TMS_VARSEL_API = {
2121

2222
const MIN_SIDE_URL = {
2323
local: "http://localhost:3000/minside",
24-
development: "https://www.dev.nav.no/minside",
24+
development: "https://www.intern.dev.nav.no/minside",
2525
production: "https://www.nav.no/minside",
2626
};
2727

2828
const tmsVarselAPI = TMS_VARSEL_API[getEnvironment()];
2929
export const minSideUrl = MIN_SIDE_URL[getEnvironment()];
30-
3130
export const inaktiveVarslerApiUrl = `${tmsVarselAPI}/inaktive`;
32-
3331
export const tidligereVarslerUrl = `${minSideUrl}/varslinger`;

0 commit comments

Comments
 (0)