Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Configure ng build to define NODE_ENV

Alexander Brandon Coles91f1283667a2
diff --git a/frontend/angular.json b/frontend/angular.json
index 9ae747d2ac3..1b92986194b 100644
--- a/frontend/angular.json
+++ b/frontend/angular.json
@@ -98,12 +98,14 @@
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
- ]
+ ],
+ "define": { "process.env.NODE_ENV": "'production'" }
},
"development": {
"optimization": false,
"extractLicenses": false,
- "sourceMap": true
+ "sourceMap": true,
+ "define": { "process.env.NODE_ENV": "'development'" }
}
},
"defaultConfiguration": "production"