UnhandledPromiseRejectionWarning: Error: only absolute urls are supported code example
Example: UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported
const dev = process.env.NODE_ENV !== 'production';
export const server = dev ? 'http://localhost:3000' : 'https://your_deployment.server.com';