Skip to content

Commit

Permalink
fix target in pam proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
kenglxn committed Oct 2, 2023
1 parent 121b5e4 commit faa9adc
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,9 @@ const main = async () => {
}),
createProxyMiddleware({
...proxyOptions,
pathRewrite: {
'^/min-side-arbeidsgiver/stillingsregistrering-api':
'/stillingsregistrering-api',
},
target: {
dev: 'https://arbeidsplassen.intern.dev.nav.no',
prod: 'https://arbeidsplassen.nav.no',
dev: 'https://arbeidsplassen.intern.dev.nav.no/stillingsregistrering-api',
prod: 'https://arbeidsplassen.nav.no/stillingsregistrering-api',
}[MILJO],
})
);
Expand Down

0 comments on commit faa9adc

Please sign in to comment.