mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
在 Vite 配置中添加新的代理规则,支持 '/plugin_static' 路径的请求转发至本地 API
This commit is contained in:
@@ -199,6 +199,12 @@ export default defineConfig({
|
|||||||
secure: false,
|
secure: false,
|
||||||
cookieDomainRewrite: 'localhost',
|
cookieDomainRewrite: 'localhost',
|
||||||
},
|
},
|
||||||
|
'/plugin_static': {
|
||||||
|
target: 'http://localhost:3001',
|
||||||
|
changeOrigin: true,
|
||||||
|
secure: false,
|
||||||
|
rewrite: path => path.replace(/^\/plugin_static/, '/api/v1/plugin/file'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
css: {
|
css: {
|
||||||
|
|||||||
Reference in New Issue
Block a user