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

Commit 8b16725

Browse files
committed
Legge app bakk ansatt url i dev
1 parent 9c9fb29 commit 8b16725

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

nais/dev-gcp/nais.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
max: 4
2525
ingresses:
2626
- "https://www.intern.dev.nav.no/tms-tidligere-varsler-mikrofrontend"
27+
- "https://www.ansatt.dev.nav.no/tms-tidligere-varsler-mikrofrontend"
2728
resources:
2829
limits:
2930
cpu: "3"

src/api/urls.ts

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

44
export const getEnvironment = () => {
55
if (isDevelopment) {
@@ -15,13 +15,13 @@ export const getEnvironment = () => {
1515

1616
const TMS_VARSEL_API = {
1717
local: "http://localhost:3000/api/tms-varsel-api",
18-
development: "https://www.intern.dev.nav.no/tms-varsel-api",
18+
development: `${window.location.origin}/tms-varsel-api`,
1919
production: "https://www.nav.no/tms-varsel-api",
2020
};
2121

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

0 commit comments

Comments
 (0)