feat: 支持本地媒体存储与上传回退
This commit is contained in:
1 parent
aa42e7b866
commit
6ac2d9421b
10 files changed
+256
-30
No files matched your search
@@ -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" },
|
||||
|
||||
Reference in new issue
Block a user