2
0

environment.ts 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // This file can be replaced during build by using the `fileReplacements` array.
  17. // `ng build ---prod` replaces `environment.ts` with `environment.prod.ts`.
  18. // The list of file replacements can be found in `angular.json`.
  19. import { DelonMockModule } from '@delon/mock';
  20. import { Environment } from '@delon/theme';
  21. import * as MOCKDATA from '../../_mock';
  22. export const environment = {
  23. production: false,
  24. useHash: true,
  25. api: {
  26. baseUrl: 'http://localhost:9527/sign/',
  27. refreshTokenEnabled: true,
  28. refreshTokenType: 're-request'
  29. },
  30. modules: [DelonMockModule.forRoot({ data: MOCKDATA })]
  31. } as Environment;
  32. /*
  33. * In development mode, to ignore zone related error stack frames such as
  34. * `zone.run`, `zoneDelegate.invokeTask` for easier debugging, you can
  35. * import the following file, but please comment it out in production mode
  36. * because it will have performance impact when throw error
  37. */
  38. // import 'zone.js/plugins/zone-error'; // Included with Angular CLI.