Skip to content

Commit 967249c

Browse files
[INFRA] - Make da compatible with da.page (#486)
1 parent 5f68466 commit 967249c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blocks/shared/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ function getDaEnv(location, key, envs) {
3333
} else if (query) {
3434
localStorage.setItem(key, query);
3535
}
36-
return envs[localStorage.getItem(key) || 'prod'];
36+
const env = envs[localStorage.getItem(key) || 'prod'];
37+
// TODO: INFRA
38+
return location.origin === 'https://da.page' ? env.replace('.live', '.page') : env;
3739
}
3840

3941
export const getDaAdmin = (() => {

0 commit comments

Comments
 (0)