File tree Expand file tree Collapse file tree 5 files changed +44
-10
lines changed Expand file tree Collapse file tree 5 files changed +44
-10
lines changed Original file line number Diff line number Diff line change 59
59
"outputHashing" : " all"
60
60
},
61
61
"development" : {
62
+ "fileReplacements" : [
63
+ {
64
+ "replace" : " src/environments/environment.ts" ,
65
+ "with" : " src/environments/environment.dev.ts"
66
+ }
67
+ ],
68
+ "budgets" : [
69
+ {
70
+ "type" : " initial" ,
71
+ "maximumWarning" : " 500kB" ,
72
+ "maximumError" : " 1MB"
73
+ },
74
+ {
75
+ "type" : " anyComponentStyle" ,
76
+ "maximumWarning" : " 2kB" ,
77
+ "maximumError" : " 4kB"
78
+ }
79
+ ],
80
+ "outputHashing" : " all"
81
+ },
82
+ "local" : {
62
83
"optimization" : false ,
63
84
"extractLicenses" : false ,
64
- "sourceMap" : true
85
+ "sourceMap" : true ,
86
+ "fileReplacements" : [
87
+ {
88
+ "replace" : " src/environments/environment.ts" ,
89
+ "with" : " src/environments/environment.local.ts"
90
+ }
91
+ ]
65
92
}
66
93
},
67
- "defaultConfiguration" : " production "
94
+ "defaultConfiguration" : " development "
68
95
},
69
96
"serve" : {
70
97
"builder" : " @angular-devkit/build-angular:dev-server" ,
74
101
},
75
102
"development" : {
76
103
"buildTarget" : " interview-prep:build:development"
104
+ },
105
+ "local" : {
106
+ "buildTarget" : " interview-prep:build:local"
77
107
}
78
108
},
79
- "defaultConfiguration" : " development "
109
+ "defaultConfiguration" : " local "
80
110
},
81
111
"extract-i18n" : {
82
112
"builder" : " @angular-devkit/build-angular:extract-i18n"
Original file line number Diff line number Diff line change 4
4
"scripts" : {
5
5
"ng" : " ng" ,
6
6
"start" : " ng serve --host 0.0.0.0 --port 4200" ,
7
- "build" : " ng build" ,
8
- "watch" : " ng build --watch --configuration development " ,
7
+ "build" : " ng build --configuration production " ,
8
+ "watch" : " ng build --watch --configuration local " ,
9
9
"test" : " ng test --no-watch" ,
10
10
"test:watch" : " ng test"
11
11
},
Original file line number Diff line number Diff line change
1
+ export const environment = {
2
+ production : true ,
3
+ apiBaseUrl : 'https://api.dev.interviewprep.onyxdevtutorials.com/api/v0' ,
4
+ } ;
Original file line number Diff line number Diff line change
1
+ export const environment = {
2
+ production : false ,
3
+ apiBaseUrl : 'http://localhost:3000/api/v0' ,
4
+ } ;
Original file line number Diff line number Diff line change 1
1
export const environment = {
2
2
production : true ,
3
- apiBaseUrl : 'https://api.dev .interviewprep.onyxdevtutorials.com/api/v0' ,
3
+ apiBaseUrl : 'https://api.prod .interviewprep.onyxdevtutorials.com/api/v0' ,
4
4
} ;
5
- // export const environment = {
6
- // production: true,
7
- // apiBaseUrl: 'http://backend:3000/api/v0',
8
- // };
You can’t perform that action at this time.
0 commit comments