Skip to content

Commit

Permalink
added mock configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ychebyshev committed Apr 15, 2024
1 parent 8c0e0b9 commit 48ba827
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
14 changes: 14 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,17 @@
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.development.ts"
}
]
},
"mock": {
"optimization": false,
"extractLicenses": false,
"sourceMap": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.mock.ts"
},
{
"replace": "src/app/http.adapter.ts",
Expand All @@ -75,6 +86,9 @@
"production": {
"buildTarget": "shvatka:build:production"
},
"mock": {
"buildTarget": "shvatka:build:mock"
},
"development": {
"buildTarget": "shvatka:build:development"
}
Expand Down
6 changes: 6 additions & 0 deletions src/environments/environment.mock.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export const environment = {
mainUrl: "http://localhost:4200",
apiUrl: "http://localhost:8000/api",
botUsername: "shvatkatestbot",
baseHref: "/",
};

0 comments on commit 48ba827

Please sign in to comment.