config.js 287 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 const hostApi = process.env.NODE_ENV === "development" ? "http://localhost" : "http://localhost"; const portApi = process.env.NODE_ENV === "development" ? 8080 : 4000; const baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}`; export default { hostApi, portApi, baseURLApi };