Skip to content

Commit 6f2772d

Browse files
committed
legge til subdomain på wss
1 parent 3a4ee0c commit 6f2772d

File tree

1 file changed

+2
-1
lines changed
  • v3/packages/internarbeidsflate-decorator-v3/src/utils

1 file changed

+2
-1
lines changed

v3/packages/internarbeidsflate-decorator-v3/src/utils/urlUtils.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,14 @@ export const wsEventDistribusjon = (
105105
environment: Environment,
106106
urlFormat: UrlFormat,
107107
) => {
108+
const subdomain = environment === "prod" ? '' : '.dev'
108109
switch (urlFormat) {
109110
case 'LOCAL':
110111
return 'ws://localhost:4000/ws/';
111112
default:
112113
return `wss://veilederflatehendelser${findEnvString(
113114
environment,
114-
)}.adeo.no/modiaeventdistribution/ws/`;
115+
)}${subdomain}.adeo.no/modiaeventdistribution/ws/`;
115116
}
116117
};
117118

0 commit comments

Comments
 (0)