mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-28 17:50:56 +01:00
fixed dev/production env issue
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import axios from 'axios'
|
||||
|
||||
const baseUrl = 'http://localhost:8000/api'
|
||||
// const baseUrl = 'http://139.129.230.98:8000/api'
|
||||
let baseUrl = 'http://localhost:8000'
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
baseUrl = 'http://139.129.230.98:8000/api'
|
||||
}
|
||||
// const baseUrl = process.env.API_BASE_URL || 'http://localhost:8000/api'
|
||||
|
||||
const request = (method, path, params, data) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
|
||||
Reference in New Issue
Block a user