|
|
|
|
@ -30,14 +30,14 @@ const getClientNameByRedirectUri = () => { |
|
|
|
|
|
|
|
|
|
const redirectUrl = () => { |
|
|
|
|
const clientName = getClientNameByRedirectUri() |
|
|
|
|
|
|
|
|
|
if (process.env.NODE_ENV === 'development') { |
|
|
|
|
switch (true) { |
|
|
|
|
case (process.env.NODE_ENV === 'development' || client.name === 'lff'): |
|
|
|
|
return `${window.origin}/redirect` |
|
|
|
|
} |
|
|
|
|
if (ENV === 'staging' || ENV === 'preproduction') { |
|
|
|
|
case (ENV === 'staging' || ENV === 'preproduction'): |
|
|
|
|
return `https://${stageENV}.instat.tv/redirect` |
|
|
|
|
} |
|
|
|
|
default: |
|
|
|
|
return `https://${clientName}.tv/redirect` |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export const getClientSettings = (): Settings => ({ |
|
|
|
|
|