Skip to content

Commit

Permalink
e2e decorator fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
frodehansen2 committed Oct 7, 2024
1 parent 3a06de2 commit 51855bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/endringsmelding-pleiepenger/e2e/server/decorator.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ const decoratorParams = new URLSearchParams({

const getDecorator = (appSettings) =>
new Promise((resolve, reject) => {
console.log('Fetching decorator from:', process.env.SIF_PUBLIC_DEKORATOR_URL);
const url =
process.env.SIF_PUBLIC_DEKORATOR_URL ||
'https://dekoratoren.ekstern.dev.nav.no/?simple=true&chatbot=false&urlLookupTable=false&logoutUrl=https://endringsmelding-pleiepenger.intern.dev.nav.no/oauth2/logout';
fetch(`${process.env.SIF_PUBLIC_DEKORATOR_URL}`, decoratorParams)
.then((response) => response.text())
.then((html) => {
Expand Down

0 comments on commit 51855bf

Please sign in to comment.