index.ts 584 B

1234567891011121314151617181920212223
  1. import { isMp, type Config } from "@/.cool";
  2. import { dev } from "./dev";
  3. import { prod } from "./prod";
  4. // 判断当前是否为开发环境
  5. export const isDev = process.env.NODE_ENV == "development";
  6. // 忽略 token 校验的接口路径
  7. export const ignoreTokens: string[] = [];
  8. // 根据环境导出最终配置
  9. export const config = {
  10. name: "Cool Unix",
  11. locale: "zh-tw",
  12. website: "https://cool-js.com",
  13. showDarkButton: isMp() ? false : true,
  14. isCustomTabBar: true,
  15. backTop: true,
  16. wx: {
  17. debug: false
  18. },
  19. ...(isDev ? dev() : prod())
  20. } as Config;