修改打包静态资源指向cdn地址,以处理在根域名下的资源指向错误

This commit is contained in:
rucky 2025-03-14 09:52:41 +08:00
parent ef3fd40ff4
commit ad7b421eff

View File

@ -25,6 +25,7 @@ if (!weappTailwindcssDisabled) {
// https://vitejs.dev/config/
export default defineConfig({
base: "https://cdn.xglpa.com/ai-agent-m/",
plugins: [
uni(),
uniRouter({
@ -40,5 +41,5 @@ export default defineConfig({
server: {
port: 8991,
},
base: "./",
// base: "./",
});