feat: 支持本地媒体存储与上传回退

This commit is contained in:
que01 committed 2026-10-12 01:39:56 +08:00
1 parent aa42e7b866
commit 6ac2d9421b
10 files changed
+256 -30

No files matched your search

+9
View File
@@ -27,6 +27,15 @@ export default defineConfig({
target: process.env.VITE_DEV_API_TARGET ?? "http://localhost:3001",
rewrite: (path) => path.replace(/^\/api/, ""),
},
...(process.env.VITE_MEDIA_PROXY_TARGET
? {
[`/${(process.env.OBJECT_STORAGE_BUCKET ?? "personal-brand-media").replace(/^\/+/, "")}`]:
{
target: process.env.VITE_MEDIA_PROXY_TARGET,
changeOrigin: true,
},
}
: {}),
},
},
build: { outDir: "dist" },