Skip to content
Snippets Groups Projects
Commit 40952cf0 authored by Nathan Walker's avatar Nathan Walker
Browse files

fix: build

parent 6796bdfc
No related branches found
No related tags found
No related merge requests found
...@@ -14,17 +14,6 @@ interface IPlatforms { ...@@ -14,17 +14,6 @@ interface IPlatforms {
export class Config { export class Config {
public static ENVIRONMENT(): EnvConfig {
if (Config.IS_MOBILE_NATIVE()) {
return {
API: 'your api endpoint',
ENV: 'nativescript'
};
} else {
return JSON.parse('<%= ENV_CONFIG %>');
}
}
public static DEBUG: any = { public static DEBUG: any = {
LEVEL_1: false, // .info only LEVEL_1: false, // .info only
LEVEL_2: false, // .warn only LEVEL_2: false, // .warn only
...@@ -60,6 +49,17 @@ export class Config { ...@@ -60,6 +49,17 @@ export class Config {
return Config.PLATFORM_TARGET === Config.PLATFORMS.DESKTOP; return Config.PLATFORM_TARGET === Config.PLATFORMS.DESKTOP;
} }
public static ENVIRONMENT(): EnvConfig {
if (Config.IS_MOBILE_NATIVE()) {
return {
API: 'your api endpoint',
ENV: 'nativescript'
};
} else {
return JSON.parse('<%= ENV_CONFIG %>');
}
}
public static IS_DEBUG_MODE(): boolean { public static IS_DEBUG_MODE(): boolean {
for (let key in Config.DEBUG) { for (let key in Config.DEBUG) {
if (Config.DEBUG[key]) { if (Config.DEBUG[key]) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment