Skip to content

Commit

Permalink
chore: adding local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
leonardodimarchi committed Jun 25, 2023
1 parent 47bba6b commit f8fad16
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 2 deletions.
19 changes: 18 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,20 @@
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
"extractLicenses": false,
"sourceMap": true,
"namedChunks": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.dev.ts"
}
]
},
"local": {
"buildOptimizer": false,
"optimization": false,
"vendorChunk": true,
Expand All @@ -74,9 +88,12 @@
},
"development": {
"browserTarget": "massage-therapy-app:build:development"
},
"local": {
"browserTarget": "massage-therapy-app:build:local"
}
},
"defaultConfiguration": "development"
"defaultConfiguration": "local"
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"scripts": {
"ng": "ng",
"start": "ng serve",
"start:dev": "ng serve --configuration development",
"start:android": "npm run build && npx cap sync android && npx cap open android",
"build": "ng build",
"watch": "ng build --watch --configuration development",
Expand Down
17 changes: 17 additions & 0 deletions src/environments/environment.dev.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

export const environment = {
production: false,
apiBaseUrl: 'https://massage-therapy-api.onrender.com',
};

/*
* For easier debugging in development mode, you can import the following file
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
*
* This import should be commented out in production mode because it will have a negative impact
* on performance if an error is thrown.
*/
// import 'zone.js/plugins/zone-error'; // Included with Angular CLI.
2 changes: 1 addition & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

export const environment = {
production: false,
apiBaseUrl: 'https://massage-therapy-api.onrender.com',
apiBaseUrl: 'http://localhost:3000',
};

/*
Expand Down

0 comments on commit f8fad16

Please sign in to comment.