dev_unstable^2
hjm 6 years ago
parent d92afe5282
commit bc802e3b60

@ -1,10 +1,10 @@
const isDev = window.location.port == 3007; const isDev = window.location.port == 3007;
export const TEST_HOST = "http://pre-newweb.educoder.net" 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://pre-newweb.educoder.net' 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://pre-newweb.educoder.net' 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://pre-newweb.educoder.net' const local = 'https://pre-newweb.educoder.net'
if (isDev) { if (isDev) {
return `${local}${path?path:''}` return `${local}${path?path:''}`
} }

Loading…
Cancel
Save