Initial commit
This commit is contained in:
38
src/common/config/app.js
Normal file
38
src/common/config/app.js
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user