environment.local.example.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * 环境配置(本地联调 —— `npm run start:local`)
  3. *
  4. * 🔴 本文件**不入库**(`.gitignore` 的 `src/environments/*.local.ts`)。
  5. * 用途:把本地开发指向预发/测试环境,而不影响团队共享的 `environment.ts`。
  6. *
  7. * 用法:
  8. * 1. 复制本模板为 `environment.local.ts`(同名去掉 `.example`)
  9. * 2. 按需改 endpoints 里的地址
  10. * 3. `npm run start:local`
  11. *
  12. * ⚠️ 不要在这里放任何密钥:前端包是公开可下载的,masterKey / AK / SK 一律不得出现。
  13. */
  14. import { baseEndpoints, Endpoints } from './environment.base';
  15. export const environment = {
  16. production: false,
  17. useMockData: false,
  18. mockLatency: 320,
  19. mockFailureRate: 0,
  20. version: '2.0.0-local',
  21. /** 示例:把后端指向另一套环境(改这里即可,不要改 environment.base.ts) */
  22. endpoints: {
  23. ...baseEndpoints,
  24. // parseServer: 'https://server-test.fmode.cn/parse',
  25. // functionsBase: 'https://server-test.fmode.cn/api/functions',
  26. // matrixHs: 'https://matrix-test.fmode.cn',
  27. } as Endpoints,
  28. };