prod.ts 308 B

123456789101112131415161718192021
  1. import { get } from "@/.cool";
  2. import { proxy } from "./proxy";
  3. export const prod = () => {
  4. const host = get(proxy, `prod.target`) as string;
  5. let baseUrl: string;
  6. // #ifdef H5
  7. baseUrl = host + "/api";
  8. // #endif
  9. // #ifndef H5
  10. baseUrl = host + "/api";
  11. // #endif
  12. return {
  13. host,
  14. baseUrl
  15. };
  16. };