'Why doesn't Angular recognize the environment "qa" I add in configuration when I run the command "npm run qa:ssr"?
//angular.json
"serve-ssr": {
"builder": "@nguniversal/builders:ssr-dev-server",
"options": {
"browserTarget": "client-v1:build",
"serverTarget": "client-v1:server"
},
"configurations": {
"production": {
"browserTarget": "client-v1:build:production",
"serverTarget": "client-v1:server:production"
},
"qa": {
"browserTarget": "client-v1:build:qa",
"serverTarget": "client-v1:server:qa"
}
}
},
//project.json
"qa:ssr": "ng run client-v1:serve-ssr:qa",
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|