Skip to content

Commit

Permalink
fix(ui): fix production config
Browse files Browse the repository at this point in the history
  • Loading branch information
neumanf committed Mar 3, 2024
1 parent 758e776 commit bbccfee
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions apps/ui/src/environment/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export const environment = {
production: true,
apiUrl: 'https://api.mally.neumanf.com',
};
6 changes: 6 additions & 0 deletions apps/ui/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { AppModule } from './app/app.module';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { environment } from './environment/environment';
import { enableProdMode } from '@angular/core';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic()
.bootstrapModule(AppModule)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
},
"homepage": "https://github.com/neumanf/mally#readme",
"scripts": {
"build:ui": "nx build ui",
"build:ui": "nx build ui --prod",
"start:ui": "nx serve ui",
"start:ui:prod": "nx serve ui --configuration=production",
"format:ui": "nx format:write ui",
"start:api": "nx serve api",
"lint": "nx lint"
Expand Down

0 comments on commit bbccfee

Please sign in to comment.