fix window not defined error
This commit is contained in:
parent
62ba9de838
commit
cbdae5b1e8
1 changed files with 2 additions and 2 deletions
|
@ -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'
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue