Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit b24445b

Browse files
committed
➕ ajout de ngx-env pour la gestion des environnements de dev & prod
1 parent c900319 commit b24445b

File tree

6 files changed

+3636
-124
lines changed

6 files changed

+3636
-124
lines changed

.env.example

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
APP_NAME="Cosna Cpanel"
2-
APP_DEBUG=true
3-
APP_URL=https://cpanel.cosna-afrique.com
4-
API_URL=https://api.cosna-afrique.com
5-
API_VERSION=v2
6-
SENTRY_DSN=
7-
SENTRY_TRACES_SAMPLE_RATE=1.0
1+
NG_APP_NAME="Cosna Cpanel"
2+
NG_APP_DEBUG=true
3+
NG_APP_VERSION=1.0.0
4+
NG_APP_API_URL=https://api.cosna-afrique.com
5+
NG_APP_API_VERSION=v2
6+
NG_APP_SENTRY_DSN=
7+
NG_APP_SENTRY_TRACES_SAMPLE_RATE=1.0

angular.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"prefix": "cosna",
2222
"architect": {
2323
"build": {
24-
"builder": "@angular-devkit/build-angular:browser",
24+
"builder": "@ngx-env/builder:browser",
2525
"options": {
2626
"outputPath": "dist/cosna-cpanel",
2727
"index": "src/index.html",
@@ -71,7 +71,7 @@
7171
"defaultConfiguration": "production"
7272
},
7373
"serve": {
74-
"builder": "@angular-devkit/build-angular:dev-server",
74+
"builder": "@ngx-env/builder:dev-server",
7575
"configurations": {
7676
"production": {
7777
"browserTarget": "cosna-cpanel:build:production"
@@ -83,13 +83,13 @@
8383
"defaultConfiguration": "development"
8484
},
8585
"extract-i18n": {
86-
"builder": "@angular-devkit/build-angular:extract-i18n",
86+
"builder": "@ngx-env/builder:extract-i18n",
8787
"options": {
8888
"browserTarget": "cosna-cpanel:build"
8989
}
9090
},
9191
"test": {
92-
"builder": "@angular-devkit/build-angular:karma",
92+
"builder": "@ngx-env/builder:karma",
9393
"options": {
9494
"main": "src/test.ts",
9595
"polyfills": "src/polyfills.ts",
@@ -108,4 +108,4 @@
108108
}
109109
},
110110
"defaultProject": "cosna-cpanel"
111-
}
111+
}

0 commit comments

Comments
 (0)