import { defineConfig } from "@umijs/max"; import defaultConfig from "./defaultConfig"; export default defineConfig({ hash: true, antd: { theme: {}, }, access: {}, model: {}, initialState: {}, request: {}, layout: { ...defaultConfig, }, npmClient: "pnpm", define: { "process.env": { API_URL: "https://shopapi.houyi2023.cn", WS_URL: "ws://shopapi.houyi2023.com", STATIC_URL: "https://shopapi.houyi2023.com", WEMAP_KEY: "ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X", }, }, headScripts: [ { src: `https://map.qq.com/api/gljs?v=1.exp&key=ZFDBZ-YUTWB-353UZ-NYKEY-JTVIZ-Q3F6X`, async: true, }, //在这里引入 ], // proxy: { // '/api': { // target: 'http://shopapi.houyi2023.cn', // changeOrigin: true, // pathRewrite: { '^/api': '' }, // }, // }, tailwindcss: {}, });