mirror of https://github.com/abpframework/abp.git
11 changed files with 77 additions and 81 deletions
@ -1,25 +0,0 @@ |
|||
export const environment = { |
|||
production: false, |
|||
hmr: true, |
|||
application: { |
|||
name: 'MyProjectName', |
|||
logoUrl: '', |
|||
}, |
|||
oAuthConfig: { |
|||
issuer: 'https://localhost:44301', |
|||
clientId: 'MyProjectName_ConsoleTestApp', |
|||
dummyClientSecret: '1q2w3e*', |
|||
scope: 'MyProjectName', |
|||
showDebugInformation: true, |
|||
oidc: false, |
|||
requireHttps: true, |
|||
}, |
|||
apis: { |
|||
default: { |
|||
url: 'https://localhost:44300', |
|||
}, |
|||
}, |
|||
localization: { |
|||
defaultResourceName: 'MyProjectName', |
|||
}, |
|||
}; |
|||
@ -1,20 +1,13 @@ |
|||
import { enableProdMode } from '@angular/core'; |
|||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; |
|||
import { BootstrapModuleFn as Bootstrap, hmr, WebpackModule } from '@ngxs/hmr-plugin'; |
|||
|
|||
import { AppModule } from './app/app.module'; |
|||
import { environment } from './environments/environment'; |
|||
|
|||
declare const module: WebpackModule; |
|||
|
|||
if (environment.production) { |
|||
enableProdMode(); |
|||
} |
|||
|
|||
const bootstrap: Bootstrap = () => platformBrowserDynamic().bootstrapModule(AppModule); |
|||
|
|||
if (environment.hmr) { |
|||
hmr(module, bootstrap).catch(err => console.error(err)); |
|||
} else { |
|||
bootstrap().catch(err => console.log(err)); |
|||
} |
|||
platformBrowserDynamic() |
|||
.bootstrapModule(AppModule) |
|||
.catch((err) => console.error(err)); |
|||
|
|||
Loading…
Reference in new issue