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