File tree 3 files changed +35
-1
lines changed
3 files changed +35
-1
lines changed Original file line number Diff line number Diff line change 36
36
"scripts" : []
37
37
},
38
38
"configurations" : {
39
+ "staging" : {
40
+ "fileReplacements" : [
41
+ {
42
+ "replace" : " src/environments/environment.ts" ,
43
+ "with" : " src/environments/environment.staging.ts"
44
+ }
45
+ ],
46
+ "budgets" : [
47
+ {
48
+ "type" : " anyComponentStyle" ,
49
+ "maximumWarning" : " 6kb"
50
+ }
51
+ ]
52
+ },
39
53
"production" : {
40
54
"fileReplacements" : [
41
55
{
71
85
"browserTarget" : " angular-material-a11y-sample:build"
72
86
},
73
87
"configurations" : {
88
+ "staging" : {
89
+ "browserTarget" : " angular-material-a11y-sample:build:staging"
90
+ },
74
91
"production" : {
75
92
"browserTarget" : " angular-material-a11y-sample:build:production"
76
93
}
Original file line number Diff line number Diff line change 39
39
"scripts" : {
40
40
"ng" : " ng" ,
41
41
"start" : " ng serve" ,
42
- "deploy" : " npm run lint && npm run build -- -c $ENVIRONMENT_PARAM " ,
42
+ "deploy" : " if [ $VERCEL_GIT_COMMIT_REF = master ]; then env=production; elif [ $VERCEL_GIT_COMMIT_REF = staging ]; then env=staging; fi && npm run build -- -c=$env " ,
43
43
"build" : " ng build" ,
44
44
"test" : " ng test" ,
45
45
"lint" : " ng lint" ,
Original file line number Diff line number Diff line change
1
+ // This file can be replaced during build by using the `fileReplacements` array.
2
+ // `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
3
+ // The list of file replacements can be found in `angular.json`.
4
+
5
+ export const environment = {
6
+ production : false ,
7
+ test : 'ステージング環境' ,
8
+ } ;
9
+
10
+ /*
11
+ * For easier debugging in development mode, you can import the following file
12
+ * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
13
+ *
14
+ * This import should be commented out in production mode because it will have a negative impact
15
+ * on performance if an error is thrown.
16
+ */
17
+ // import 'zone.js/dist/zone-error'; // Included with Angular CLI.
You can’t perform that action at this time.
0 commit comments