Initial commit

This commit is contained in:
Rifqy Zacky Ariadhy
2019-01-02 18:39:53 +07:00
commit 1a000700e6
781 changed files with 95892 additions and 0 deletions

38
src/common/config/app.js Normal file
View File

@@ -0,0 +1,38 @@
const appConfigDev = {
apiUrl: "http://localhost:8823/v1/",
imageUrl: "http://localhost:8823"
};
const appConfigProd = {
apiUrl: '',
imageUrl: ''
}
// if (typeof window != 'undefined' && window.PRODUCTION) {
// appConfig = appConfigProd
// } else {
// appConfig = appConfigDev
// }
let apiUrl;
let imageUrl;
let appUrl;
let type = 'akuntiket';
// apiUrl = "https://marketplace-sillyfish-staging-api.asacreative.com/v1/";
// imageUrl = "https://marketplace-sillyfish-staging-api.asacreative.com";
apiUrl = "https://marketplace-sillyfish-api.asacreative.com/v1/";
imageUrl = "https://marketplace-sillyfish-api.asacreative.com";
type = 'localhost';
if(window.location.href.includes("localhost") || window.location.href.includes("marketplace-store")){
appUrl = 'http://localhost:7700'
}else{
appUrl = 'https://sillyfish.asacreative.com';
}
export const appConfig = {
apiUrl: apiUrl,
imageUrl: imageUrl,
appUrl: appUrl,
type
};