= `https://${process.env.HOST || 'localhost'}:${process.env.PORT || 3000}`
                  
                  
                  } else if (typeof window !== 'undefined') {
                  
                  
                    if (typeof window.location !== 'undefined') {
                  
                  
                      const { protocol, hostname, port } = window.location
                  
                  
                      options.baseURL = `${protocol}://${hostname}${port ? ':' + port : ''}`
                  
                  
                    }
                  
                  
                  }
                  
                  
                
why else if
Обсуждают сегодня