📜  UnhandledPromiseRejectionWarning: TypeError: Only absolute URLs are supported - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:55.641000             🧑  作者: Mango

代码示例1
const dev = process.env.NODE_ENV !== 'production';

export const server = dev ? 'http://localhost:3000' : 'https://your_deployment.server.com';