Files
houyi-admin/config/config.js
PC-202306242200\Administrator 23dc139a31 first commit
2026-03-28 23:25:01 +08:00

42 lines
880 B
JavaScript

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: {},
});