|
|
@ -1,10 +1,10 @@
|
|
|
|
const isDev = window.location.port == 3007;
|
|
|
|
const isDev = window.location.port == 3007;
|
|
|
|
export const TEST_HOST = "http://47.96.87.25:48080"
|
|
|
|
export const TEST_HOST = "https://pre-newweb.educoder.net"
|
|
|
|
export function getImageUrl(path) {
|
|
|
|
export function getImageUrl(path) {
|
|
|
|
// https://www.educoder.net
|
|
|
|
// https://www.educoder.net
|
|
|
|
// https://testbdweb.trustie.net
|
|
|
|
// https://testbdweb.trustie.net
|
|
|
|
// const local = 'http://localhost:3000'
|
|
|
|
// const local = 'http://localhost:3000'
|
|
|
|
const local = 'http://47.96.87.25:48080'
|
|
|
|
const local = 'https://pre-newweb.educoder.net'
|
|
|
|
if (isDev) {
|
|
|
|
if (isDev) {
|
|
|
|
return `${local}/${path}`
|
|
|
|
return `${local}/${path}`
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -12,7 +12,7 @@ export function getImageUrl(path) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function setImagesUrl(path){
|
|
|
|
export function setImagesUrl(path){
|
|
|
|
const local = 'http://47.96.87.25:48080'
|
|
|
|
const local = 'https://pre-newweb.educoder.net'
|
|
|
|
let firstStr=path.substr(0,1);
|
|
|
|
let firstStr=path.substr(0,1);
|
|
|
|
// console.log(firstStr);
|
|
|
|
// console.log(firstStr);
|
|
|
|
if(firstStr=="/"){
|
|
|
|
if(firstStr=="/"){
|
|
|
@ -31,7 +31,7 @@ export function getUrl(path, goTest) {
|
|
|
|
// testbdweb.educoder.net testbdweb.trustie.net
|
|
|
|
// testbdweb.educoder.net testbdweb.trustie.net
|
|
|
|
// const local = goTest ? 'https://testeduplus2.educoder.net' : 'http://localhost:3000'
|
|
|
|
// const local = goTest ? 'https://testeduplus2.educoder.net' : 'http://localhost:3000'
|
|
|
|
// const local = 'https://testeduplus2.educoder.net'
|
|
|
|
// const local = 'https://testeduplus2.educoder.net'
|
|
|
|
const local = 'http://47.96.87.25:48080'
|
|
|
|
const local = 'https://pre-newweb.educoder.net'
|
|
|
|
if (isDev) {
|
|
|
|
if (isDev) {
|
|
|
|
return `${local}${path?path:''}`
|
|
|
|
return `${local}${path?path:''}`
|
|
|
|
}
|
|
|
|
}
|
|
|
|