diff --git a/src/utils/environment.ts b/src/utils/environment.ts index d476ce33f..c3dbe9aa1 100644 --- a/src/utils/environment.ts +++ b/src/utils/environment.ts @@ -24,10 +24,10 @@ export const getEnvFromHost = () => { }; export const getDomainFromHost = (): 'ANSATT' | 'NAV_NO' | 'LOCAL' => { - const matchAnsatt = window.location.host.match(/\.ansatt\.(dev)?\.nav\.no/); + const matchAnsatt = window.location.host.match(/\.ansatt(\.dev)?\.nav\.no/); if (matchAnsatt) return 'ANSATT'; - const matchIntern = window.location.host.match(/\.intern\.(dev)?\.nav\.no/); + const matchIntern = window.location.host.match(/\.intern(\.dev)?\.nav\.no/); if (matchIntern) return 'NAV_NO'; return 'LOCAL';