@campxdev/shared 1.10.88 → 1.10.89
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
|
@@ -169,6 +169,8 @@ export function UnAuth({ resetBoundary }) {
|
|
|
169
169
|
const isLocalHost =
|
|
170
170
|
process.env.NODE_ENV === 'development' ||
|
|
171
171
|
origin?.slice(-2).join('.') === 'campx.dev'
|
|
172
|
+
const isSetup = window.location.hostname.split('.').includes('setup')
|
|
173
|
+
console.log('isSetup in error fallback', isSetup)
|
|
172
174
|
const sessionCookie = Cookies.get('campx_session_key')
|
|
173
175
|
|
|
174
176
|
const appinit = async () => {
|
|
@@ -212,7 +214,7 @@ export function UnAuth({ resetBoundary }) {
|
|
|
212
214
|
}
|
|
213
215
|
|
|
214
216
|
useEffect(() => {
|
|
215
|
-
if (!isLocalHost) {
|
|
217
|
+
if (!isLocalHost && !isSetup) {
|
|
216
218
|
window.location.replace(`https://www.id.campx.in/?redirect_to=${url}`)
|
|
217
219
|
}
|
|
218
220
|
}, [isLocalHost])
|