@campxdev/shared 0.2.7 → 0.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -22,7 +22,8 @@ const imageMap = {
|
|
|
22
22
|
const isDev = process.env.NODE_ENV === 'development'
|
|
23
23
|
|
|
24
24
|
export default function AppHeader({title}: {title?: string}) {
|
|
25
|
-
const originSubdomain =
|
|
25
|
+
const originSubdomain = `https://www.exams.ums.in`.split('.')?.slice(-3)[0]
|
|
26
|
+
console.log(originSubdomain)
|
|
26
27
|
const currentApp =
|
|
27
28
|
applications.find((item) => item.key === originSubdomain)?.key ?? 'local'
|
|
28
29
|
|
|
@@ -6,7 +6,7 @@ import PersonRoundedIcon from '@mui/icons-material/PersonRounded'
|
|
|
6
6
|
|
|
7
7
|
const isDev =
|
|
8
8
|
process.env.NODE_ENV === 'development' ||
|
|
9
|
-
window.location.origin.split('.').slice(-2)
|
|
9
|
+
window.location.origin.split('.').slice(-2).join('.') === 'campx.dev'
|
|
10
10
|
|
|
11
11
|
const origins = {
|
|
12
12
|
ums: {
|