fix window not defined error

This commit is contained in:
Abhinav 2023-01-14 20:08:09 +05:30
parent 62ba9de838
commit cbdae5b1e8

View file

@ -80,9 +80,9 @@ const isDevDeployment = () => {
if (runningInBrowser()) {
return (
process.env.NEXT_PUBLIC_ENTE_WEB_ENDPOINT ===
window.location.origin ||
globalThis.location.origin ||
process.env.NEXT_PUBLIC_ENTE_ALBUM_ENDPOINT ===
window.location.origin ||
globalThis.location.origin ||
process.env.NODE_ENV === 'development'
);
}