Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .env.development.local

This file was deleted.

1 change: 1 addition & 0 deletions .env.local
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_RUNTIME_ENVIRONMENT=local
2 changes: 1 addition & 1 deletion nais/nais-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ spec:
cpu: 200m
memory: 256Mi
ingresses:
- 'https://www.ekstern.dev.nav.no/syk/kartleggingssporsmal'
- 'https://www.nav.no/syk/kartleggingssporsmal'
env:
- name: MEROPPFOLGING_BACKEND_URL
value: http://meroppfolging-backend
Expand Down
2 changes: 0 additions & 2 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { fetchKandidatStatus } from '@/services/meroppfolging/meroppfolgingService'
import KartleggingssporsmalLanding from '@/features/kartleggingssporsmal/KartleggingssporsmalLanding'

export const dynamic = 'force-dynamic'

export default async function Home() {
const kandidatStatus = await fetchKandidatStatus()

Expand Down
6 changes: 3 additions & 3 deletions src/services/meroppfolging/meroppfolgingService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ export async function fetchKandidatStatus(): Promise<KandidatStatusResponse> {
}
}

const { MEROPPFOLGING_BACKEND_URL } = getServerEnv()
const url = new URL('/api/v1/kartleggingssporsmal/kandidat-status', MEROPPFOLGING_BACKEND_URL)

const idportenToken = await verifyUserLoggedIn()
const exchangedToken = await exchangeIdportenTokenForMeroppfolgingBackendTokenx(idportenToken)

const { MEROPPFOLGING_BACKEND_URL } = getServerEnv()
const url = new URL('/api/v1/kartleggingssporsmal/kandidat-status', MEROPPFOLGING_BACKEND_URL)

try {
const res = await fetch(url, {
method: 'GET',
Expand Down
Loading