修改打包静态资源指向cdn地址,以处理在根域名下的资源指向错误
This commit is contained in:
parent
ef3fd40ff4
commit
ad7b421eff
@ -25,6 +25,7 @@ if (!weappTailwindcssDisabled) {
|
|||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: "https://cdn.xglpa.com/ai-agent-m/",
|
||||||
plugins: [
|
plugins: [
|
||||||
uni(),
|
uni(),
|
||||||
uniRouter({
|
uniRouter({
|
||||||
@ -40,5 +41,5 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 8991,
|
port: 8991,
|
||||||
},
|
},
|
||||||
base: "./",
|
// base: "./",
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user