diff --git a/angular.json b/angular.json index a59093a6..8bf0b9cb 100644 --- a/angular.json +++ b/angular.json @@ -47,7 +47,7 @@ "inject": false } ], - + "scripts": [ "node_modules/quill/dist/quill.min.js", "node_modules/perfect-scrollbar/dist/perfect-scrollbar.js", @@ -83,6 +83,18 @@ "maximumError": "10mb" }] }, + "test": { + "fileReplacements": [{ + "replace": "src/environments/environment.ts", + "with": "src/environments/eascs/environment.test.ts" + }], + "outputHashing": "all", + "budgets": [{ + "type": "initial", + "maximumWarning": "4mb", + "maximumError": "10mb" + }] + }, "development": { "buildOptimizer": false, "optimization": false, diff --git a/package.json b/package.json index f7a7e591..b7818333 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "hmr": "ng s -o --hmr", "build": "npm run ng-high-memory build --", "build:dev": "npm run build -- -c dev", + "build:test": "npm run build -- -c test", "analyze": "npm run ng-high-memory build -- --source-map", "analyze:view": "source-map-explorer dist/**/*.js", "lint": "npm run lint:ts && npm run lint:style", diff --git a/src/environments/eascs/environment.pre.ts b/src/environments/eascs/environment.test.ts similarity index 100% rename from src/environments/eascs/environment.pre.ts rename to src/environments/eascs/environment.test.ts diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 2a6fbc82..11537197 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -4,7 +4,7 @@ export const environment = { production: true, useHash: true, api: { - baseUrl: 'https://tms-api-test.eascs.com', + baseUrl: 'https://tms-api.yunduoxing.com', refreshTokenEnabled: true, refreshTokenType: 'auth-refresh' }