Set up environment-based configurations for API and builds.

Replaced hardcoded API URLs with environment-specific configurations. Added new environments (development, beta, production) with respective settings. Updated build scripts and Angular file replacements to support environment-based builds.
This commit is contained in:
2025-04-19 01:28:29 +02:00
parent 3d4d77bc73
commit 43edd49273
10 changed files with 52 additions and 9 deletions
+24 -2
View File
@@ -41,7 +41,7 @@
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
"with": "src/environments/environment.production.ts"
}
],
"optimization": true,
@@ -55,7 +55,29 @@
},
"development": {
"sourceMap": true,
"optimization": false
"optimization": false,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
}
]
},
"beta": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.beta.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"logging": false,
"vendorChunk": false,
"buildOptimizer": true
}
}
},