`https://${process.env.HOST || 'localhost'}:${process.env.PORT || 3000}`
                  
                  
                  } else if (window) {
                  
                  
                    const { protocol, hostname, port } = window.location
                  
                  
                    options.baseURL = `${protocol}://${hostname}${port ? ':' + port : ''}`
                  
                  
                  }
                  
                  
                
process will be undefined in browser, causing a "Cannot find server of undefined"
What is this
if (typeof process !== 'undefined' && process.server) {
Let's see here.... you're just using window if it exists
Обсуждают сегодня